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