@Test public void testSubProcessBuilderDetached() { modelInstance = Bpmn.createProcess() .startEvent() .subProcess(SUB_PROCESS_ID) .serviceTask(SERVICE_TASK_ID) .endEvent() .done(); final SubProcess subProcess = modelInstance.getModelElementById(SUB_PROCESS_ID); subProcess.builder().embeddedSubProcess().startEvent().userTask().endEvent(); final ServiceTask serviceTask = modelInstance.getModelElementById(SERVICE_TASK_ID); assertThat(subProcess.getChildElementsByType(Event.class)).hasSize(2); assertThat(subProcess.getChildElementsByType(Task.class)).hasSize(1); assertThat(subProcess.getFlowElements()).hasSize(5); assertThat(subProcess.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);  }