Need to Trigger Approvals based on the Selection of Variable on the Catalogue Form

komuru
Tera Contributor

I have four variables on Catalogue form and each variable have different approval action. If i selected only one varaible, only one Approval task should trigger and if i select only 2 variable,2 approval should trigger. currently all four are triggering every time.

 

Attached screen shots of Catalogue form and Work Flow

8 REPLIES 8

harishdasari
Tera Guru

Hi,

 

remove Four Switch cases, and keep only one switch case on the workflow.

Now in switch case add 4 activities and route it to different approval actions.

This will solve your issue.

thank you.

Hope this is helpful.

komuru
Tera Contributor

removed four switches.

 

but when i am using one Switch it is asking for variable.

 

 

curtisr
Kilo Expert

*Disclaimer* I have not used the switch option in the workflow yet, so its possible I am off here.

 

Why not use "If" statements checking each variable, leading to its own approval and resulting task? Also, with this you should make the form so at least one of the options are required, otherwise the workflow will stall out and not do anything. find_real_file.png

komuru
Tera Contributor

i am using if condition but getting some error.