@Test public void testCreateInvoiceProcess() { modelInstance = Bpmn.createProcess() .executable() .startEvent() .name("Invoice received") .camundaFormKey("embedded:app:forms/start-form.html") .userTask() .name("Assign Approver") .camundaFormKey("embedded:app:forms/assign-approver.html") .camundaAssignee("demo") .userTask("approveInvoice") .name("Approve Invoice") .camundaFormKey("embedded:app:forms/approve-invoice.html") .camundaAssignee("${approver}") .exclusiveGateway() .name("Invoice approved?") .gatewayDirection(GatewayDirection.Diverging) .condition("yes", "${approved}") .userTask() .name("Prepare Bank Transfer") .camundaFormKey("embedded:app:forms/prepare-bank-transfer.html") .camundaCandidateGroups("accounting") .serviceTask() .name("Archive Invoice") .camundaClass("org.camunda.bpm.example.invoice.service.ArchiveInvoiceService" ) .endEvent() .name("Invoice processed") .moveToLastGateway() .condition("no", "${!approved}") .userTask() .name("Review Invoice") .camundaFormKey("embedded:app:forms/review-invoice.html" ) .camundaAssignee("demo") .exclusiveGateway() .name("Review successful?") .gatewayDirection(GatewayDirection.Diverging) .condition("no", "${!clarified}") .endEvent() .name("Invoice not processed") .moveToLastGateway() .condition("yes", "${clarified}") .connectTo("approveInvoice") .done(); }
public StartEventBuilder startEvent() { return startEvent(null); }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } ProcessBuilder(BpmnModelInstance modelInstance, Process process); }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } ProcessBuilder(BpmnModelInstance modelInstance, Process process); StartEventBuilder startEvent(); StartEventBuilder startEvent(String id); EventSubProcessBuilder eventSubProcess(); EventSubProcessBuilder eventSubProcess(String id); }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } ProcessBuilder(BpmnModelInstance modelInstance, Process process); StartEventBuilder startEvent(); StartEventBuilder startEvent(String id); EventSubProcessBuilder eventSubProcess(); EventSubProcessBuilder eventSubProcess(String id);  }