Wait for Condition in flow designer for multiple tasks

AnilM99
Tera Expert

Hi Team, 

I created a new flow designer and added the "Do the following in Parallel" to create 3 catalog tasks.

Now my requirement is to "wait for a condition"; if any catalog task state changes to WIP, the parent RITM state changes to WIP.

Then add one more "wait for a condition" to wait for the closing of all the tasks. If all tasks are closed, close the parent RITM.

 

Customer requirement: These all changes are done by the flow designer only; don't use BR or others

 

Thanks, 

Anil!

1 REPLY 1

Its_Azar
Kilo Sage
Kilo Sage

Hi there @AnilM99 

 After your parallel task creation, add a Wait for condition that checks the task table for any related task moving to Work in Progress (filter on request_item = current RITM and state = WIP). When that condition is met, update the RITM to WIP. Then add a second Wait for condition to monitor when all tasks are closed — for example, wait until the count of tasks where state != Closed is zero. Once done, update the RITM to Closed. 

 

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.

Kind Regards,

Mohamed Azarudeen Z

Developer @ KPMG