Switch activity in Workflow 5 - How do I use it?
Good afternoon,
I am trying to use a Switch activity in my workflow, but cannot find any information on how to make it work. I can connect other activities to it, but don't know how to make it do anything with them. The help file gives no example or explanation, and I am struggling to find any examples of where it's used to see how it's done. Can someone please post an explanation?
Thanks
Justin
-
Hi Justin - I don't seem to be able to attach a sample here. If you email me @ rkelley@blm.gov, I can send you a sample via email.
0 -
There are lots of use cases, but here is a simple one. You have a display form with three buttons. Buttons have values value1, value2, value3. Then you want to do different stuff according to which button the user pressed. You can then use a switch to check $form1.result. Assign $form1.result to the switch activity's input (value). You can then drag three containers into the workflow, connect each of them to the switch activity. Then, selecting each connection from the switch assign value1, value2 and value3 to the connection's case property. Then you have a logic that says: If $form1.result = value1 then do what follows the switch following the connection with case value1. I feel now that this was hard to explain with just words...
2 -
Thank you Jostein and Ryan. Between the example you, Ryan, shared with me, and the explanation you, Jostein, have given, it all makes sense. You have explained it well.
Thank you again
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare