Using Decisions in Flo-lang

Rules Designer decisions may be used within flo-lang in the same places that v2Flo decisions can be used with only minor differences. Their intention is to enable adding of decisions into the flow directly using the DSL without requiring Java experience. To create a Rules Designer decision, see here:

To implement using v2Flo Decision Libraries instead, see the tutorial here:

For this example we will use this decision:

simple decision

Decisions are called as from the Perform Action section of behaviours. Click on the cell and press Ctrl+Space to see the available options. Select Perform Decision

simple decision perform

Now choose the decision you want to use.

simple decision name

To pass in the input business data for the decision, you will need to open the inspector and use Ctrl+Space to see available data elements.

To open the inspector, either right-click and choose Inspect Node or use the shortcut alt+2
simple decision inspector

For each possible decision outcome, choose either another action to call or an event to raise if that path is taken.

simple decision additional events

Any additional events need to be defined higher up in the Event Definitions table.

simple decision events

Now these events can be used within other behaviours to determine which state to transition to next.

simple decision behaviours