@Test public void testTransactionBuilder() { final BpmnModelInstance modelInstance = Bpmn.createProcess() .startEvent() .transaction(TRANSACTION_ID) .method(TransactionMethod.Image) .embeddedSubProcess() .startEvent() .userTask() .endEvent() .transactionDone() .serviceTask(SERVICE_TASK_ID) .endEvent() .done(); final Transaction transaction = modelInstance.getModelElementById(TRANSACTION_ID); final ServiceTask serviceTask = modelInstance.getModelElementById(SERVICE_TASK_ID); assertThat(transaction.getMethod()).isEqualTo(TransactionMethod.Image); assertThat(transaction.getChildElementsByType(Event.class)).hasSize(2); assertThat(transaction.getChildElementsByType(Task.class)).hasSize(1); assertThat(transaction.getFlowElements()).hasSize(5); assertThat(transaction.getSucceedingNodes().singleResult()).isEqualTo(serviceTask); }
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);  }