Multiple extensibility action scripts or flows that run when a condition is satisfied using a switch element.
In some cases, the condition must be equal to true in order for the action to run. Other cases, as seen in this example, require parameter values to be met before an action can run. If none of the conditions are met the action flow fails.
version: 1 id: 1234 name: Test inputs: ... outputs: ... flow: flow_start: next: forkAction forkAction: fork: next: [action1, action2] action1: action: <action_name> next: action3 action3: action: <action_name> next: action4 action4: action: <action_name> next: action7 action7: action: <action_name> next: joinElement action2: action: <action_name> next: switchAction switchAction: switch: "${1 == 1}": action5 "${1 != 1}": action6 action5: action: <action_name> next: action8 action6: action: <action_name> next: action8 action8: action: <action_name>
Note: You can loop back to a previous action by assigning it as the
next: action. For example, instead of
next: flow_end to end your action flow, you can enter
next: action1 to rerun action1 and restart the sequence of actions.
|
Switch element |