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