Exchange
and applies
its nested interceptors for each element. The current element is exposed
in the exchange under the property key "it"
.
Example configuration:
<for in="message.headers['items']" language="jsonpath">
</for>
Name | Required | Default | Description | Examples |
---|---|---|---|---|
in | true | - | An expression that evaluates to a collection (e.g., a List). The interceptors nested within the element will be executed for each item in this collection. The current item is available in the exchange property named `it`.
|
`message.json.customers` (if language is the default "SpEL") or `/orders/order/ |
language | false | groovy |
the language of the 'test' condition
|
SpEL, groovy, jsonpath, xpath |
Elements | Description | Cardinality |
---|---|---|
echo | 0..* | |
response | 0..* | |
abort | 0..* | |
request | 0..* |