Skip to content

Instantly share code, notes, and snippets.

@mariomartinezricston
Created July 8, 2016 11:31
Show Gist options
  • Save mariomartinezricston/06bbbd83b2c13c468e4918d116f974d1 to your computer and use it in GitHub Desktop.
Save mariomartinezricston/06bbbd83b2c13c468e4918d116f974d1 to your computer and use it in GitHub Desktop.
public class AnimalTransformer extends AbstractMessageTransformer{
public Object transformMessage(MuleMessage message, String outputEncoding) throws TransformerException {
String flowVarName = message.getProperty("flowVarName", PropertyScope.INVOCATION);
Animal animal=new Animal(flowVarName);
return animal;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment