Home > Forum > Actions > Ending sub-workflows

Ending sub-workflows
0

Hi All,

I have a workflow where I use “Start a subworkflow (SQL)” action. I also have a “Wait for sub-workflows(system step)” step where I wait until all the subworkflows will end.

I configured the “Wait for sub-workflows” to go back to “register step” when one of the subworkflows finished negative. See picture


And here are my problems:

Let say I started 3 sub-workflows and one of them went negative path. Although my main workflow went to the “register step” the rest sub-workflows are still in progress. I want to mark them automatically as “Finished by system”. I don’t know how…

And the second problem: When the main workflow is on the “Register step” and I save it, It should go to “Wait for sub-workflows” step but it goes back to “register step”( because the “Wait for sub-workflows” step sees that first sub-workflow was finished negative. It is some kind of a loop and I don’t know how to get around this.

Does anybody know how to help me?

Nobody has replied in this thread yet.