VMware Cloud Community
ahb
VMware Employee
VMware Employee

"start workflows in parallel" workflow

The "start workflows in parallel" workflow seems to start them all and then complete, even if they are still running.   Is this the expected behavior?

-Ann

0 Kudos
3 Replies
Burke-
VMware Employee
VMware Employee

No, that is not expected behavior - the last box "Wait for completion" is supposed to keep the workflow in a running state until all tokens have completed.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
ahb
VMware Employee
VMware Employee

Thank you Burke, that's good to know.  I must be doing something wrong, will dig deeper.  

-Ann

0 Kudos
cdecanini_
VMware Employee
VMware Employee

For the benefit of other people reading this thread the workflow is not waiting for workflows in "waiting-signal" state. You can duplicate the "start workflow in parallel" workflow and edit it to add it:

for(var i=0; i<wfTokens.length; i++){
        if(wfTokens[i].state != "running" && wfTokens[i].state != "waiting" && wfTokens[i].state != "waiting-signal") { //added && wfTokens[i].state != "waiting-signal
  

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos