Skip to content

Latest commit

 

History

History
40 lines (39 loc) · 1.04 KB

switch.md

File metadata and controls

40 lines (39 loc) · 1.04 KB

switch

Essa ação é utilizada para se tomar decisões dentro do fluxo:

Ex:

{
    "id": "1",
    "action": "switch",
    "data": {
        "conditions": [
            {
                "operator": "equal",
                "first_expression": "value 1",
                "second_expression": "value 2",
                "next_action": "3"
            },
            {
                "operator": "different",
                "first_expression": "value 1",
                "second_expression": "value 2",
                "next_action": "3"
            },
            {
                "operator": "greater_than",
                "first_expression": "value 1",
                "second_expression": "value 2",
                "next_action": "3"
            },
            {
                "operator": "less_than",
                "first_expression": "value 1",
                "second_expression": "value 2",
                "next_action": "3"
            }
        ],
        "next_action_else": "4"
    },
    "next_action": "${pipeline.next_action}"
}