Last active
December 26, 2015 12:59
-
-
Save ricston-git/7155249 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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