@Test public void testExtend() { modelInstance = Bpmn.createProcess().startEvent().userTask().id("task1").serviceTask().endEvent().done(); assertThat(modelInstance.getModelElementsByType(taskType)).hasSize(2); final UserTask userTask = modelInstance.getModelElementById("task1"); final SequenceFlow outgoingSequenceFlow = userTask.getOutgoing().iterator().next(); final FlowNode serviceTask = outgoingSequenceFlow.getTarget(); userTask.getOutgoing().remove(outgoingSequenceFlow); userTask.builder().scriptTask().userTask().connectTo(serviceTask.getId()); assertThat(modelInstance.getModelElementsByType(taskType)).hasSize(4); }
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);  }