Even the state of the catalog task is set to closed cancelled,The work flow is still running

Gowtham Kodali
Tera Contributor

 when the state of the catalog task related to an RITM is changed  to closed cancelled The Work flow is still executing 

How to stop the work flow if the state is changed to  closed cancelled

 

 

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

The best way to do this is to add Conditions on this specific task on the workflow, or create a business rule if you want any task that is Closed Incomplete/cancelled to cancel the RITM.  When an RITM is Closed Incomplete, there are out of the box Business Rules in place to close incomplete any other open tasks and cancel the workflow.  To add Conditions, right-click on the task activity, and choose Add Condition.  You should have one condition for each inactive catalog task state, so out of the box that's Closed Complete (3), Closed Incomplete (4), and Closed Skipped (7).  Give the condition a Name, then in the Condition field type activity.result==3 for Closed Complete.

find_real_file.png

Repeat to add the other conditions, then right-click directly on the Always condition and choose Delete.  Now all you have to do is route the paths accordingly - you may want to continue on to the next task/activity if Closed Complete, and maybe Closed Skipped too, and point to an activity that makes the RITM Closed Incomplete if the task is Closed Incomplete.

find_real_file.png

In this example the Set Values activity is setting the (RITM) State = Closed Incomplete, Active = false, and the Stage to Complete.

View solution in original post

20 REPLIES 20

I have done that when the catalog task is closed cancelled the RITM isbeing updated to state closed cancelled  but the work flow is still running 

So your task should appear as blue/completed when you click the Show Workflow Related Link, and a blue arrow should be coming out of the Closed Cancelled condition and going to a Set Values activity as I pictured above.  After the Set Values, the path goes to End and the workflow finishes.  Which step in this sequence is not as I have described it?

No the State of RITM is also not changed and in the work flow its still at the stage Catalog task only 

 

find_real_file.png

Hi Gowtham,

 

can you show what is the conditions you have written in the catalog task?

Hi these are conditions 

 

find_real_file.png