SpEL Expression Evaluator

Rate this page: 
No votes yet

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

With our library of Cloud Connectors and repeatable integration solutions, you can rapidly create connectivity either on premise or in the cloud.

Project Owner: 
Victor Romero
Contact: 
calamidad@gmail.com
Documentation: 
http://code.google.com/p/mule-module-spel/