@Test public void testCompensateEventDefintionReferencesNonExistingActivity() { modelInstance = Bpmn.createProcess() .startEvent() .userTask("userTask") .endEvent("end") .done(); UserTask userTask = modelInstance.getModelElementById("userTask"); UserTaskBuilder userTaskBuilder = userTask.builder(); try { userTaskBuilder .boundaryEvent() .compensateEventDefinition() .activityRef("nonExistingTask") .done(); fail("should fail"); } catch (BpmnModelException e) { assertThat(e).hasMessageContaining("Activity with id 'nonExistingTask' does not exist"); } }
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);  }