Skip to content

Instantly share code, notes, and snippets.

@ricston-git
Last active December 26, 2015 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricston-git/7155249 to your computer and use it in GitHub Desktop.
Save ricston-git/7155249 to your computer and use it in GitHub Desktop.
public class ProcessRequestDelegate implements JavaDelegate {
private final static Logger LOGGER = Logger.getLogger("LOAN-REQUESTS");
public void execute(DelegateExecution execution) throws Exception {
LOGGER.info("Processing request by '"
+ execution.getVariable("customerId"));
// make rest call to mule
MuleClient client = new MuleClient(true);
MuleMessage result = client.send("http://localhost:8082/mule/", "Message Payload", null);
LOGGER.info("Result from mule is: " + result.getPayloadAsString());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment