"Wait for Child Tasks to Close" Activity in Flow Designer

Ilo Gassoway
Mega Guru

Has anyone developed a Flow Designer activity for the Service Catalog that mirrors the old "Wait for Child Tasks to close" Workflow activity? I use this in a lot of my catalog item workflows to be sure to allow any manually created catalog tasks are closed before ending the workflow. 

This does not appear to be an out of box activity for flow designer.

18 REPLIES 18

Thanks Dave L. Thats my next step to do as you suggested.Although the 'Lookup records' method is working now. Does have limitations though, so you script should 'cover all bases'.

This is excellent, thanks for sharing.  However my Wait for Condition keeps waiting even after all the tasks are Active = false.  I have attached my flow and the execution.  Can you spot what is wrong?

Hello Fernando.

For this, I created a reusable sub-flow. I have attached a few  screenshots to show how I did it. In the subflow, I run it twice, to check if a task has been added, while the additional task is open. Overkill I know, but just to be sure. The screenshot only show the first pass, but it works fine.

Thank you! appreciate your help. This works for me.

Community Alums
Not applicable

Hi Vikas,

 

I know this is several years old and I'm trying the same thing in Tokyo but the For Each... Wait for Condition is evaluating for the 1st task that I created; not for all of them.  

 

Any thoughts on why?  The Look Up Catalog Task Record is returning all of the expected catalog tasks.  I'm dynamically creating the catalog tasks within the same flow.