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 large 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.
- Agent type
type of the agents
exiting this block. This agent type is referred to below as
- SelectOutputIn block
- The block
that composes a quasi multi-exit
together with this and other
- Probability [0..1], when applicable
- Applies when in the referred
is set to
With probabilities in SelectOuputOut blocks. Expression used to evaluate the probability that the current agent will exit via this
block. The probability value should be in the [0..1] range.
- the agent
- On exit (true)
- Code executed when the agent exits the block.
- the agent
- The output port.