@Test public void testCreateProcessWithMultipleParallelTask() { modelInstance = Bpmn.createProcess() .startEvent() .parallelGateway("fork") .userTask() .parallelGateway("join") .moveToNode("fork") .serviceTask() .connectTo("join") .moveToNode("fork") .userTask() .connectTo("join") .moveToNode("fork") .scriptTask() .connectTo("join") .endEvent() .done(); assertThat(modelInstance.getModelElementsByType(eventType)).hasSize(2); assertThat(modelInstance.getModelElementsByType(taskType)).hasSize(4); assertThat(modelInstance.getModelElementsByType(gatewayType)).hasSize(2); }
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);  }