DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
You could use EL to create an Predicate in a Message Filter or as an Expression for a Recipient List
Syntax
Expression | Type | Description |
|---|---|---|
exchange | Exchange | the Exchange object |
in | Message | the exchange.in message |
out | Message | the exchange.out message |
You can use EL dot notation to invoke operations. If you for instance have a body that contains a POJO that has a getFamiliyName method then you can construct the syntax as follows:
| Code Block |
|---|
"$in.body.familyName"
|
You have the full power of EL at your hand so you can invoke methods to for instance replace text. In the sample below we replace the text in the body where id is replaced with orderId.
| Code Block | ||||
|---|---|---|---|---|
| ||||
<from uri="seda:incomingOrders">
<setBody>
<el>${in.body.replaceAll('id','orderId')}</el>
</setBody>
<to uri="seda:processOrder"/>
|
Dependencies
To use EL in your camel routes you need to add the a dependency on camel-juel which implements the EL language.
...