@Test public void testCamundaExecutionListenerByDelegateExpression() { modelInstance = Bpmn.createProcess() .startEvent() .userTask("task") .camundaExecutionListenerDelegateExpression("start", "aDelegateExpression") .endEvent() .done(); UserTask userTask = modelInstance.getModelElementById("task"); ExtensionElements extensionElements = userTask.getExtensionElements(); Collection<CamundaExecutionListener> executionListeners = extensionElements.getChildElementsByType(CamundaExecutionListener.class); assertThat(executionListeners).hasSize(1); CamundaExecutionListener executionListener = executionListeners.iterator().next(); assertThat(executionListener.getCamundaDelegateExpression()).isEqualTo("aDelegateExpression"); assertThat(executionListener.getCamundaEvent()).isEqualTo("start"); }
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);  }