diff --git a/docs/src/reference/docbook/transformer.xml b/docs/src/reference/docbook/transformer.xml index 12e925f523..839458b3ff 100644 --- a/docs/src/reference/docbook/transformer.xml +++ b/docs/src/reference/docbook/transformer.xml @@ -64,6 +64,28 @@ be sent (effectively the same behavior as a Message Filter returning false). Otherwise, the return value will be sent as the payload of an outbound reply Message. + + + Transformers and Spring Expression Language (SpEL) + + + + Just like Routers, Aggregators and other components, since Spring Integration 2.0 Transformers can also benefit from SpEL + http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/expressions.html + whenever transformation logic is relatively simple. + + ]]> + + In the above configuration we are achieving a simple transformation of the payload with a simple SpEL + expression and without writing a custom transformer. Our payload (assuming String) will be + upper-cased and concatenated with the current timestamp with some simple formatting. + + + + Common Transformers + There are a also a few Transformer implementations available out of the box. Because, it is fairly common to use the toString() representation of an Object, Spring Integration provides an