How to stop the current execution and restart the flow again if the state is reverted back?

Ankita Kolhe
Tera Contributor

Hi Community,

 

For the enhancement record, the issue is that when the revert to draft process is triggered even though the approvals are marked as no longer required the previous approval flow context does not end when the demand is set to draft again. This is because the approval action is still waiting for it to be approved or rejected. As the flow is set to only trigger if not already running, the new approvals do not trigger again.

To resolve this added a parallel wait condition to end the enhancement approval flow when the state changes to draft. 

 

Please see the screenshots below:

Added parallel wait for condition (step 2-5):

AnkitaKolhe_0-1776229588592.png

 

Modified Run trigger : Every update:

AnkitaKolhe_1-1776229662558.png

 

Wait for condition step:

AnkitaKolhe_2-1776229755226.png

 

So when I reverted back the state to draft the flow didn't end (it got cancelled) and when state changed to Technical review ,   flow execution didn't start. The parallel step isn't working as it should be. Please help me on this:

 

Example:

AnkitaKolhe_3-1776229993019.png

 

 

Thanks,

Ankita

 

 

 

0 REPLIES 0