"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

Community Alums
Not applicable

The way i did is:

  1. Use "Look up Records" action for sc_task table to find all records that matches the request_item.
  2. Use action "For wach item in" above results
  3. Use action "Wait for condition" where Active is false.

find_real_file.png

 

@Vikas Ghavate This is the method I've started using, and it appears to be working. Thanks!

Community Alums
Not applicable

I am glad that it worked for you.

Hello, I did try this. I created a requested, and manually added 2 additional tasks. This method only seems to wait on the first manually added task. Once that was closed, the requested item finished without waiting for the third (or second manually added) task to complete. Would I have to add additional lookups for each task?

Thanks

Dave L
Tera Contributor

See my answer below as it will accommodate additional tasks created during the for each item. You're just going to create a workflow and treat it as a catch all so the task won't close until ALL tasks are closed.