Skip to main content

Switch activity in Workflow 5 - How do I use it?

Comments

3 comments

  • Ryan Kelley

    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
  • Jostein Svegården

    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
  • Justin Kraemer

    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

Please sign in to leave a comment.