Last active
April 27, 2017 05:38
-
-
Save berndruecker/1842e5a38b669ec0c6849dcb2e51836c 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
private void createFlow() { | |
engine.getRepositoryService().createDeployment() | |
.addModelInstance(Bpmn.createExecutableProcess("order") | |
.startEvent() | |
.serviceTask().name("Retrieve payment").camundaClass(DoPaymentAdapter.class) | |
.serviceTask().name("Fetch goods").camundaClass(PickGoodsAdapter.class) | |
.serviceTask().name("Ship goods").camundaClass(ShipGoodsAdapter.class) | |
.endEvent().camundaExecutionListenerClass("end", OrderCompletedAdapter.class) | |
.done() | |
).deploy(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment