We provide you with two blocks for routing agents to different flowchart branches:
has two output ports and can split the agent flow to two branches
has five output ports, so it may route agents to up to five exits.
blocks you can create one quasi-block
with the required number of exits. You create it by adding one
and the required number of
blocks. These blocks should not be connected together graphically.
To implement a custom routing to N flowchart branches
- Add one
block from the
section located at the bottom of the
Process Modeling Library
- Add the required number of
- In each
block, specify the name of the
block that serves as the input.
- Define the routing principle. There are two alternative options:
By explicit choice, and specify the expression returning the
block in the property below
With probabilities in SelectOutputOut blocks, and specify probabilities for each
The following simple model demonstrates how to implement both cases.
- Select output
- Here you specify whether agents will be routed depending on the specified expression for output choice or randomly according to the probabilities defined in
By explicit choice -
agents will be routed depending on the specified expression for output choice
With probabilities in SelectOutputOut blocks -
agents will be routed according to the probabilities defined in
blocks that refer to this
- SelectOutputOut block
- [Visible if
By explicit choice] Here you specify the expression that returns theSelectOutputOut
block where the agent will be forwarded.
- the agent
- On enter
- Code executed when the agent enters the block.
- the agent
- The input port.