Last active
April 24, 2017 08:03
-
-
Save berndruecker/fdf7303bfe71edef742250e76ad3e49a 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 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