Created
March 27, 2017 09:33
-
-
Save berndruecker/6c78fb2067f291972e47110a92de5e14 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
deploymentBuilder | |
.addModelInstance("order.bpmn", Bpmn.createExecutableProcess("Order") | |
.startEvent() | |
.businessRuleTask().name("Determine risk of fraud").camundaDecisionRef("RiskyOrder") | |
.camundaResultVariable("riskyOrder").camundaMapDecisionResult("singleEntry") | |
.serviceTask().name("Do payment").camundaClass(DoPaymentAdapter.class).camundaAsyncBefore() | |
.sendTask() .name("Initiate delivery").camundaClass(InitiateDeliveryAdapter.class) | |
.receiveTask().name("Wait for delivery").message("MessageDeliveryDone") | |
.endEvent() | |
.done() | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment