Skip to content

Instantly share code, notes, and snippets.

@berndruecker
Last active April 24, 2017 08:03
Show Gist options
  • Save berndruecker/fdf7303bfe71edef742250e76ad3e49a to your computer and use it in GitHub Desktop.
Save berndruecker/fdf7303bfe71edef742250e76ad3e49a to your computer and use it in GitHub Desktop.
public class RetrievePaymentAdapter implements JavaDelegate {
public void execute(ActivityExecution ctx) {
// prepare message content, you can load variables from persistent flow context
ctx.getVariable("orderId");
// ...
// Send command
publishCommand("DoPayment", payload);
// ant tell the engine to wait for the next event
addEventSubscription("PaymentReceived", ctx);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment