I am posting the java code in camunda
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());
}