@Test public void testErrorEndEventWithExistingError() { modelInstance = Bpmn.createProcess() .startEvent() .userTask("task") .endEvent("end").error("myErrorCode", "errorMessage") .moveToActivity("task") .boundaryEvent("boundary").error("myErrorCode") .endEvent("boundaryEnd") .done(); Error boundaryError = assertErrorEventDefinition("boundary", "myErrorCode", "errorMessage"); Error endError = assertErrorEventDefinition("end", "myErrorCode", "errorMessage"); assertThat(boundaryError).isEqualTo(endError); assertOnlyOneErrorExists("myErrorCode"); }
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);  }