cOnCompletion
Adds custom process when the original message exchange is complete.
This component provides a simplified way to handle actions that should occur after one or multiple sub-Routes complete their processing and makes it easier to manage final result handling, such as auditing, logging, or cleanup operations, without requiring additional custom logic or interceptors.For more information, see the Apache camel documentation https://camel.apache.org/components/latest/.
cOnCompletion Standard properties
These properties are used to configure cOnCompletion running in the Route framework.
The cOnCompletion component belongs to the Exception Handling family.
Basic settings
| Properties | Description |
|---|---|
|
always |
Select this option to trigger the completion task after the original message exchange is complete. |
| failure only | Select this option to trigger the completion task only if the original message exchange fails. |
| use original message | Select this checkbox to use the message in the original Route. |
| Mode |
|
Usage
| Usage guidance | Description |
|---|---|
|
Usage rule |
cOnCompletion is a start component of a sub-route. |
|
Connections |
|
|
Limitation |
To keep the original sub-routes untouched, cOnCompletion only be used in a separate sub-route. |