@Test public void testEscalationBoundaryEvent() { modelInstance = Bpmn.createProcess() .startEvent() .subProcess("subProcess") .endEvent() .moveToActivity("subProcess") .boundaryEvent("boundary").escalation("myEscalationCode") .endEvent("boundaryEnd") .done(); assertEscalationEventDefinition("boundary", "myEscalationCode"); SubProcess subProcess = modelInstance.getModelElementById("subProcess"); BoundaryEvent boundaryEvent = modelInstance.getModelElementById("boundary"); EndEvent boundaryEnd = modelInstance.getModelElementById("boundaryEnd"); assertThat(boundaryEvent.getAttachedTo()).isEqualTo(subProcess); 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);  }