@Test public void testMessageEventDefinitionWithID() { modelInstance = Bpmn.createProcess() .startEvent() .intermediateThrowEvent("throw1") .messageEventDefinition("messageEventDefinition") .done(); MessageEventDefinition event = modelInstance.getModelElementById("messageEventDefinition"); assertThat(event).isNotNull(); modelInstance = Bpmn.createProcess() .startEvent() .intermediateThrowEvent("throw2") .messageEventDefinition().id("messageEventDefinition1") .done(); event = modelInstance.getModelElementById("messageEventDefinition1"); assertThat(event).isNotNull(); modelInstance = Bpmn.createProcess() .startEvent() .endEvent("end1") .messageEventDefinition("messageEventDefinition") .done(); event = modelInstance.getModelElementById("messageEventDefinition"); assertThat(event).isNotNull(); modelInstance = Bpmn.createProcess() .startEvent() .endEvent("end2") .messageEventDefinition().id("messageEventDefinition1") .done(); event = modelInstance.getModelElementById("messageEventDefinition1"); assertThat(event).isNotNull(); }
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);  }