@Test public void testReceiveTaskWithExistingMessage() { modelInstance = Bpmn.createProcess() .startEvent() .receiveTask("receive1").message("message") .receiveTask("receive2").message("message") .done(); ReceiveTask receiveTask1 = modelInstance.getModelElementById("receive1"); Message message1 = receiveTask1.getMessage(); ReceiveTask receiveTask2 = modelInstance.getModelElementById("receive2"); Message message2 = receiveTask2.getMessage(); assertThat(message1).isEqualTo(message2); assertOnlyOneMessageExists("message"); }
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);  }