Raise error
Description
The Raise error component stops the current event from being processed any further by raising an error.
The error is passed to the scenario's error handling, so it is logged or sent to the configured error topic like
any other processing error. Raising it does not stop the scenario - processing of the following events continues normally.
Use it to reject events that should not flow further, while keeping a record of them in the standard error handling.
Parameters
| Name | Description |
|---|---|
| Message | Mandatory. Evaluated per event. The message describing the error. Must not be null (validated also at runtime). |
| Params | Optional. A key-value map evaluated per event, serialized to JSON and attached to the error as its input. |
The serialized Params map becomes the error's input, so it is available in the error handling. When Params is omitted, the error input is empty.
Example
- Message is
'Order rejected' - Params is
{orderId: #input.id}
then, for each event reaching the node, an error is raised whose message is the rendered Message (Order rejected) and
whose input is the rendered Params serialized as JSON (for example {"orderId":42}). Only the current event is
rejected; the scenario keeps running and processes the next events.