Skip to main content

I have 2 workflows:

 

- Main Workflow who start 3 Instances (Synchronous) of workflow - 2 named Child,

 

 

- Child workflow is very simple, Only have a task to the user, and send the result to the parent workflow (Main).

 

Main Workflow wait to the result of the Child process, and analyze the result is one of the is cancel the workfow expires the rest of the steps and workflow continue.

 

 

Main Workflow: MainWorkflow.jpg

call to workflows: CallSubWorkflow.JPG, CallSubWorkflow2.JPG

Merge Rule Main Workflow : MergeRule.jpg

 

 

Extecution: 

When Main workflow starts 3 instantes of the child workflows are created, and 3 tasks are assigned to the user, when the users selects cancel of one of them, this child workflow ends and the main workflow continues to merge step, this step expires the other steps and workflow continues. The problem is the other subproceses are active, ¿is posible end the other child workflows?, I selected the option "Expired active sub workflow if the step is expired" in the call of the 3 subprocesses.

 

Thanks in advance.

 

Antonio.

 

 


12767i5218B4CAD9923E22.jpg
13580iA979ADDDF6A975E5.jpg
17110iBCA4BC4428C406B8.jpg
11735iD4F5814F380472D0.jpg
13434i983B4894B1AB1548.jpg
12291i94B6FD61B0B5D6F8.jpg
15609i2687F84189FA97A3.jpg
16991i75CC11A7ABFF6D31.jpg
17140i3C0DFC45CE2B80B5.jpg
11724i85C5E845D9A6D708.jpg

The "expire active sub workflow.." checkbox was actually released in error as the backend implementation to trigger the expiration of the sub workflows was never completed.  The checkbox has subsequently been removed from the product. The feature is still sitting on the backlog but has not had enough traction to bump it up to the top of the list. I would recommend logging the idea here (https://ideas.k2.com/) so that other people can vote on it.

 

An approach you can use in the mean time is to set a deadline expiration on the task in the sub workflow that will end the workflow if it has been idle for too long. To avoid all three sub workflows from expiring prematurely you could add a decision step after the deadline expiration that checks some status in a SmartBox smartobject (set by the parent workflow) to see if it should loop back and assign the task again or just end the workflow. 


Reply