Name
Choice — Routes messages based on a series of predicates
Usage
The choice pattern is the entry to a content based router. It does not do any processing. The routing decisions are left up to when patterns.
The choice pattern can be placed anywhere in the route body. It must be followed by one
or more when
patterns and a single otherwise
pattern.
Properties
Table 3.2 describes the properties you can specify using the properties editor.
Table 3.2. Choice Properties
Name | Description |
---|---|
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. |