1 package org.onap.so.bpmn.core.plugins;
3 import org.camunda.bpm.engine.delegate.ExecutionListener;
4 import org.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener;
5 import org.camunda.bpm.engine.impl.pvm.process.ActivityImpl;
6 import org.camunda.bpm.engine.impl.pvm.process.ScopeImpl;
7 import org.camunda.bpm.engine.impl.util.xml.Element;
8 import org.springframework.stereotype.Component;
11 public class AsyncTaskExecutor extends AbstractBpmnParseListener {
13 private void injectTaskExecutorExecutionListener(ActivityImpl activity) {
14 activity.addListener(ExecutionListener.EVENTNAME_END, new AsyncTaskExecutorListener());
18 public void parseEndEvent(Element endEventElement, ScopeImpl scope, ActivityImpl activity) {
19 injectTaskExecutorExecutionListener(activity);