@Test public void testCamundaTaskListenerByClass() { modelInstance = Bpmn.createProcess() .startEvent() .userTask("task") .camundaTaskListenerClass("start", this.getClass()) .endEvent() .done(); UserTask userTask = modelInstance.getModelElementById("task"); ExtensionElements extensionElements = userTask.getExtensionElements(); Collection<CamundaTaskListener> taskListeners = extensionElements.getChildElementsByType(CamundaTaskListener.class); assertThat(taskListeners).hasSize(1); CamundaTaskListener taskListener = taskListeners.iterator().next(); assertThat(taskListener.getCamundaClass()).isEqualTo(this.getClass().getName()); assertThat(taskListener.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);  }