protected Class<?> getStartProcessInstanceClass() {
return StartProcessListener.class;
}
protected Task createModelAccessTask(BpmnModelInstance modelInstance, Class<?> delegateClass) {
ManualTask task = modelInstance.newInstance(ManualTask.class);
task.setId("manualTask");
CamundaExecutionListener executionListener = modelInstance.newInstance(CamundaExecutionListener.class);
executionListener.setCamundaEvent(ExecutionListener.EVENTNAME_START);
executionListener.setCamundaClass(delegateClass.getName());
task.builder().addExtensionElement(executionListener);
return task;
}