Wait for condition on Record 1 OR Record 2 on a different table

Josh102
Kilo Guru

Hello,

 

In a flow I am creating a Catalog Task with 'waiting for completion' unchecked, then in the next step I am launching a subflow to send out a document via docusign and setting the flow stage to 'Awaiting Docusign Signature'. In the next steps, I need to wait for a condition change from whichever occurs first; the response from Docusign or the completion of the Catalog Task.

 

The task is for new user creation, if the user creation task is complete but the ICT Policy agreement is not docusigned, I need to send out a notification to their manager saying that ICT has completed the work but the flow is just awaiting a signature. If Docusign is returned before the task is closed, I need to change the flow Stage from 'Awaiting Docusign Signature' to 'Awaiting Service Desk Action'

 

Going down the obvious route, running the two tasks in parallel with 'Wait for Completion' enabled then using if statements to determine which one was done first; unfortunately we are not able to change the stage in flow steps that are running in parallel.

 

The 'Do the following until' parameter allows me to specify the parameter values from the subflow OR cat task, but I don't want to be running a while loop with a timer delay constantly for each active flow.

 

I want to be able to use a 'Wait for Condition' action to listen for a change on both the subflow context and the catalog task so that it can be triggered by whichever changes first. Or if I could start 2 'Wait for Condition' actions in parallel, but end one branch when the other is triggered first, that would also work.

 

Does anyone have any suggestions on how to set this up so that I'm able to set the stage of the flow as well as have different actions occurring depending on which one was completed first?

1 ACCEPTED SOLUTION

Josh102
Kilo Guru

I was able to resolve this by starting the catalogue task and the DocuSign sub flow without waiting for completion. Then I run another sub flow with the cat task record and the DocuSign sub flow context as inputs. This sub flow has two 'wait for condition' actions running in parallel, one waiting for the DocuSign sub flow context state to be completed, the other waiting for the Catalogue task to be closed. When either of those conditions are met, the sub flow ends. Then in the main flow I check which condition was met using IF blocks and set the flow state here.

View solution in original post

1 REPLY 1

Josh102
Kilo Guru

I was able to resolve this by starting the catalogue task and the DocuSign sub flow without waiting for completion. Then I run another sub flow with the cat task record and the DocuSign sub flow context as inputs. This sub flow has two 'wait for condition' actions running in parallel, one waiting for the DocuSign sub flow context state to be completed, the other waiting for the Catalogue task to be closed. When either of those conditions are met, the sub flow ends. Then in the main flow I check which condition was met using IF blocks and set the flow state here.