@Test public void testCreateInvoiceProcess() { modelInstance = Bpmn.createProcess() .executable() .startEvent() .name("Invoice received") .userTask() .name("Assign Approver") .userTask("approveInvoice") .name("Approve Invoice") .exclusiveGateway() .name("Invoice approved?") .gatewayDirection(GatewayDirection.Diverging) .condition("yes", "${approved}") .userTask() .name("Prepare Bank Transfer") .serviceTask() .name("Archive Invoice") .endEvent() .name("Invoice processed") .moveToLastGateway() .condition("no", "${!approved}") .userTask() .name("Review Invoice") .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(final BpmnModelInstance modelInstance, final Process process); }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } ProcessBuilder(final BpmnModelInstance modelInstance, final Process process); StartEventBuilder startEvent(); StartEventBuilder startEvent(final String id); EventSubProcessBuilder eventSubProcess(); EventSubProcessBuilder eventSubProcess(final String id); ProcessBuilder eventSubProcess(
      final String id, final Consumer<EventSubProcessBuilder> consumer); }
ProcessBuilder extends AbstractProcessBuilder<ProcessBuilder> { public StartEventBuilder startEvent() { return startEvent(null); } ProcessBuilder(final BpmnModelInstance modelInstance, final Process process); StartEventBuilder startEvent(); StartEventBuilder startEvent(final String id); EventSubProcessBuilder eventSubProcess(); EventSubProcessBuilder eventSubProcess(final String id); ProcessBuilder eventSubProcess(
      final String id, final Consumer<EventSubProcessBuilder> consumer);  }