Updated on 2025-08-15 GMT+08:00

Adding a Decision Diagram Element for a Flow

Functions

This diagram element is for establishing conditional branches in your flow, directing subsequent operations based on the outcome of the condition, similar to an "if" statement.

Using the Decision Diagram Element

  1. On the flow designer, choose Logic and drag the Decision diagram element to the canvas.
  2. Click the decision diagram element, click , and set basic information.

    Table 1 Parameter description

    Parameter

    Description

    Label

    Label of the diagram element, which is displayed on the flow design page. The system automatically assigns a value in a specific Decisionsequence number format, with the sequence number starting at 0 for each type of diagram element.

    Name

    Diagram element name, which must be unique in the current flow. The naming requirements are as follows:

    • Value: 1–80 characters.
    • Start with a letter and can contain letters, digits, and underscores (_). It cannot end with an underscore (_).

    Description

    Description of the diagram element.

    Value: 1–255 characters.

  1. Click and complete the configuration.

    Figure 1 Configuring the decision diagram element
    Table 2 Parameters for configuring a decision diagram element

    Parameter

    Description

    Editable Outcomes

    All judgment conditions.

    • You can click Add to add a judgment condition branch and configure the branch condition in the right pane.
    • Default: default output. When all other conditions are not met, this branch will be executed.

    Visual

    When Visual is selected, you can configure the judgment condition of the branch. Click Add Row to add a judgment condition. The conditions are displayed as Resource, Operator, and Value.

    • Resource: Drag a variable from Context or enter {!Variable name}.
    • Operator: Select a value from the drop-down list.
    • Value: Drag a variable from Context, enter {!Variable name}, or enter a constant.

    Formula

    You can use a formula to set the branch condition.

    Variables in the formula. You can drag variables from Context or directly enter variables.

    Select relationship of conditions

    If you select Visual and set multiple judgment conditions, you need to set this parameter to Or or And.

    • Or: The branch can be entered when one of the conditions is met.
    • And: The branch can be entered only when multiple conditions are met.