@Test public void testSubProcessBuilder() { BpmnModelInstance modelInstance = Bpmn.createProcess() .startEvent() .subProcess(SUB_PROCESS_ID) .camundaAsyncBefore() .embeddedSubProcess() .startEvent() .userTask() .endEvent() .subProcessDone() .serviceTask(SERVICE_TASK_ID) .endEvent() .done(); SubProcess subProcess = modelInstance.getModelElementById(SUB_PROCESS_ID); ServiceTask serviceTask = modelInstance.getModelElementById(SERVICE_TASK_ID); assertThat(subProcess.isCamundaAsyncBefore()).isTrue(); assertThat(subProcess.isCamundaExclusive()).isTrue(); 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(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);  }