@Test public void testMessageBoundaryEvent() { modelInstance = Bpmn.createProcess() .startEvent() .userTask("task") .endEvent() .moveToActivity("task") .boundaryEvent("boundary").message("message") .endEvent("boundaryEnd") .done(); assertMessageEventDefinition("boundary", "message"); UserTask userTask = modelInstance.getModelElementById("task"); BoundaryEvent boundaryEvent = modelInstance.getModelElementById("boundary"); EndEvent boundaryEnd = modelInstance.getModelElementById("boundaryEnd"); assertThat(boundaryEvent.getAttachedTo()).isEqualTo(userTask); assertThat(boundaryEvent.getIncoming()).isEmpty(); List<FlowNode> succeedingNodes = boundaryEvent.getSucceedingNodes().list(); assertThat(succeedingNodes).containsOnly(boundaryEnd); }
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);  }