How to close a task and end a workflow

michaelmonocchi
Kilo Expert

Is there a way to close a Task and end a workflow, and also close the Request Item? We have a Service Request for mobile email access. The workflow starts off with a Catalog Task.   The Task is there in case the user has a question about our mobile email policy. If the user has no question, the Task is skipped and moves on to the next stage which is manager approval.

If the user does have a question, the Task goes to the Security Director to give the user an explanation of the policy. If the user still wants to continue, the Director simply closes the Task and the workflow moves on. If the user does not wish to continue, we want the Director to be able to close the Task so it ends the workflow and closes the Request Item.

1 ACCEPTED SOLUTION

Right click on Catalog task activity then you will able to see Add condition


find_real_file.png



Here are the conditions that I'm using


find_real_file.png


where value 3 is the closed complete state value



find_real_file.png


View solution in original post

4 REPLIES 4

vaibhavdesai
Kilo Expert

Hello michaelmonocchi,



There are multiple   ways to do this.



You can add activity in your workflow in order to achieve the same based on combination of script and conditions in workflow OR  


From script on the form, you can set status of your task to closed and in the workflow you can put similar condition "when status is closed" add connection to end of workflow.



Regards,


Vaibhav


dvp
Mega Sage
Mega Sage

Michael,



you can use closed complete and incomplete state values



and when the task is closed move ahead with rest of workflow


but if the task is closed incomplete then close the RITM and end workflow..



Here is the task activity with custom conditions




find_real_file.png


Thanks. Would this require any scripting in the Catalog Task? Also, how would I configure the Conditions of Complete and Other (Cancelled)? I tried doing something like this and it did not work so I know I was missing something.


Right click on Catalog task activity then you will able to see Add condition


find_real_file.png



Here are the conditions that I'm using


find_real_file.png


where value 3 is the closed complete state value



find_real_file.png