Add Decisions

A decision has logical notations, such as decision tables, expressions, if-then-else rules, and so on. Within your decision model, you can add a decision by selecting the logic type you plan to use to obtain a specific output.

Within decision models, decisions are classified into two categories:
  • Main decision: The output of the main decision provides the result of the decision model.
  • Supporting decision: One or more supporting decisions provide input to the main decision.

You can add a decision to your model by dragging one of the decision types from the Palette panel onto the canvas. After you add a decision, you define its properties and logic.

In the canvas, you can order decisions in several ways. For example, you can create a bottom-up sequence flow, with the main decision at the top and supporting decisions below it; or a left-to-right flow, and so on.

To add a decision to your model:

  1. In your project, click Decision Decision icon in the left toolbar to view your decision model.
  2. In the Decisions box, point to the decision model you created, click Options icon, and click Edit.
  3. In the decision designer, click Palette Palette icon on the sidebar.
  4. On the Palette panel, choose one of the following decision types under Decisions.
    • Empty decision

    • Context

    • Decision table

    • List

    • Expression

    • Function

    • If / else

    • Loop

    • Relation

  5. Drag the decision type onto the canvas and drop it at the required spot.
  6. In the Decision Properties panel that appears, enter the following information for the decision.
    Field Description

    Name

    Enter a unique name for the decision node.

    Note:

    You can also assign a decision node the same name as a previously-added decision node. Choose an existing name from the drop-down list Expand icon next to the Name field.

    However, if you add a particular decision type to the canvas and select the name of a different type of decision node from the drop-down list, the node's logic type changes.

    Edit

    Click Edit icon to edit the decision node's logic. You can also double-click the node on the canvas to view or edit its logic.

    Delete

    Click Delete icon to delete either the decision node or both the node and its associated logic. Alternatively, click Options icon on a decision node, and select Delete to remove it from the canvas.

    Logic

    Change the decision node's logic type if required. For example, you can add an empty decision to the canvas and change its logic from the properties panel.

    Note:

    If you select a previously-implemented decision node in the Name field and change the type in the Logic field, the content of the previously-implemented node is overwritten.

    Description

    Provide additional information, if any, for the decision node.

    Question

    Add questions for the decision node.

    Allowed Answers

    Add the possible answers for the decision node.

  7. Click Close Close icon, or click Palette icon to return to the Palette panel and add another decision.
    Changes you make within the decision model are automatically saved and validated.