Name
When — Triggers a route when an expression evaluates to true
Usage
The when pattern is part of a content based router. It is used to determine if a path is to be followed by the message. The message is evaluated against the specified expression and if it evaluates to true the path is followed.
The when pattern must follow one of these patterns:
Choice
Intercept
Intercept Send To Endpoint
Properties
Table 3.19 describes the properties you can specify using the properties editor.
Table 3.19. When Properties
Name | Description |
---|---|
Expression | Specifies the expression used to determine if this path should be taken. |
language | Specifies the expression language used to process the expression. |
Inherit Error Handler | Specifies if the node should use the error handler configured for the route. |
Id | Specifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Apache Camel configuration file. |
Description | Specifies a text description of the bean. The description is included in the generated XML file. |
Related topics
Intercept |
Intercept Send To Endpoint |
Expression and Predicates Languages |
Configuring the Fuse IDE route editor in Using Fuse IDE |