Flow designer cancelling and assign new one

SNow Learner41
Tera Contributor

Hi,

i have this requirement can any one please help to me to get the solution,

 

Create a button named "Reapprove". On clicking on this button, the existing flow designer should be cancelled and
the state should be work in progress and approval should be set to requested so that again a new flow designer is attached
Fire an event to trigger notification for change opening to the project manager.

 

Thank You,

Kiran Kumar.

1 REPLY 1

Tomas Lozano
Tera Expert

Hi Kiran

Based on your post, I can't be certain, you have understood the concept of flow designer (or workflow studio as it'll be called from Washington onwards 😀) as ideally you want to trigger it automatically when something happens, i.e. a task status/substatus updates to whathever value constitutes the 're-approve' state you're after.

 

If you insist on a manual trigger, i would suggest the following

0. pre-requisite: Configure the 'other' flow to end with the 're-approval'

1. build a subflow with the necessary steps e.g. approval and event notification

2. create code snippet that executes the subflow by clicking on the (...) icon on the top right

TomasLozano_1-1707920243237.png

 

3. append the input array with the neccessary variables and consider whether the subflow should run in foreground (default) or in background. I would recommend background i.e. async if possible

4. create new UI action with snippet from step 3

 

To progress the process have another flow ready to pick up the remainder of the process once this 're-approval' is successful.

 

Hope this helps.