SpEL Expression Evaluator
SpEL Expression Evaluator
Description
This module adds to Mule the ability to use the Spring Expression Language
Wherever others expression evaluators like groovy, xpath, header or ogln are used, SpEL can be used too.
Here are a few small examples of SpEL used in Mule :
<expression-transformer>
<return-argument evaluator="custom" custom-evaluator="spel" expression="'hello' "/>
<return-argument evaluator="custom" custom-evaluator="spel" expression="#payload.name.toUpperCase() "/>
</expression-transformer>
<message-properties-transformer>
<add-message-property key="1" value="#[spel:new String('hello world').toUpperCase()]"/>
<add-message-property key="2" value="#[spel:'good'.concat('bye')]"/>
</message-properties-transformer>
<expression-filter evaluator="custom" customEvaluator="spel" expression="#payload.active"/>
More Information
For more information, installation, etc. Please visit the Project site