2. Mule Transformers introduction
1.Transformers are used to transform message or event payloads to and
from different types
2.Transformers are used to convert inbound data to an object type
required by the UMO Component or outbound to an object type
required by the transport such as a JMS Message.
3.Multiple transformers can be chained together to get a finer grained
transformer implementation that are easier to reuse.
3. Ways to alter a message using Transformers
Transformer can alter a message in different ways:
Payload type transformation-The data type of the message payload is
transformed from one form to another.
Payload format transformation-The data format of the message
payload is transformed from one form to another.
Properties transformation-The properties of the message are
modified,whether by adding new properties or by
removing,renaming,or changing the values of existing properties.
9. Custom Transformers
A Custom transformer is a user-defined transformer class that
implements org.mule.api.transformer.Transformer.
• Depending on your needs we can extend Abstract Transformeror
AbstractMessageAwareTransformer.
• We build Custom transformers if it's impossible to realize with an
existing transformer or a chain of transformers.
Example :