Name
On Completion — Route to be executed when normal route processing completes
Usage
The on completion pattern defines a set of steps that are executed when normal route processing is completed. It can either be scoped local to a specific route or globally for all routes defined in the context.
![]() | Important |
---|---|
Locally scoped on completion patterns take precedent over globally scoped ones. Therefore in a locally scoped on completion pattern exists, the globally scoped pattern will not be executed. |
When specifying a locally scoped on completion pattern, the pattern directly follows the from endpoint in the route.
When specifying a globally scoped on completion pattern, the pattern starts a new route.
Properties
Table 4.8 describes the properties you can specify using the properties editor.
Table 4.8. On Completion Properties
Name | Description |
---|---|
Inherit Error Handler | Specifies if the node should use the error handler configured for the route. |
Executor Service Ref | Specifies a reference for looking up the
executorService to use for
thread pool management. |
On Failure Only | Specifies that the path will only be taken if message processing fails. Cannot be checked if On Complete Only is checked. |
Use Original Message Policy | Specifies that message that began the route is placed in the dead letter queue instead of the message that caused the exception. |
On Complete Only | Specifies that the path will only be taken if message processing completes successfully. Cannot be checked if On Failure Only is checked. |
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. |