Skip to content

Instantly share code, notes, and snippets.

@cgorshing
Last active January 4, 2016 19:59
Show Gist options
  • Save cgorshing/8670821 to your computer and use it in GitHub Desktop.
Save cgorshing/8670821 to your computer and use it in GitHub Desktop.
package com.example;
import org.mule.api.MuleEventContext;
import org.mule.api.lifecycle.Callable;
/**
* From the docs
* "To enable the component to work directly with the message,
* you must implement the Callable interface"
*
* Use with:
*
*<component>
* <singleton-object class="com.example.DebugInspector"/>
*</component>
*/
public class DebugInspector implements Callable {
public Object onCall(MuleEventContext eventContext) throws Exception {
//Flow name context.getFlowConstruct().getName()
return eventContext.getMessage();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment