SelectOutputIn

We provide you with two blocks for routing agents to different flowchart branches: SelectOutput and SelectOutput5.

Using SelectOutputIn and SelectOutputOut blocks you can create one quasi-block SelectOutput with the required number of exits. You create it by adding one SelectOutputIn and the required number of SelectOutputOut blocks. These blocks should not be connected together graphically.

To implement a custom routing to N flowchart branches, do the following:

1. Create one SelectOutputIn block
2. Add the required number of SelectOutputOut blocks.
3. In each SelectOutputOut block, specify the name of the SelectOutputIn block that serves as the input
4. Define the routing principle. There are two alternative options:

a) In SelectOutputIn properties, choose Select output: By explicit choice, and specify the expression returning the SelectOutputOut block in the property below

b) In SelectOutputIn properties, choose Select output: With probabilities in SelectOutputOut blocks, and specify probabilities for each SelectOutputOut block.

The following simple model demonstrates how to implement both cases.

Demo model: SelectOutputN

Parameters

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 SelectOutputOut blocks.
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 SelectOutputOut blocks that refer to this SelectOutputIn.
Syntax: boolean conditionIsProbabilistic
SelectOutputOut block [dynamic]
[Visible if Select output: By explicit choice] Here you specify the expression that returns the SelectOutputOut block where the agent will be forwarded.
Local variable: agent - the agent
Actions
On enter [code]
Code executed when the agent enters the block.
Local variable: agent - the agent

Ports

in
The input port.