Trigger connections for a Route
Trigger connections define specific channels to route messages in according to specific conditions.
Messages will be filtered and routed to specific Routes according to defined conditions.
when
The when link connects specifically a cMessageRouter component to receiving components to filter and route messages in one or several output Routes according to specified conditions.
These conditions can be defined in the Connection settings of each when link you create in your Route. Messages not matching the condition set can be retrieved with an otherwise link. For more information, see the otherwise section below.
otherwise
The otherwise link can only be used with a cMessageRouter component and if at least one when link has already been used to filter and route messages.
So, the otherwise link retrieves all messages that are not matching the conditions defined in the several when links.
It is recommended not to put any message handling after the when or the otherwise link. Always use a Mock/Direct endpoint to replace them and make a new Route to handle the messages.