if (execution != null) {
setEventName(taskEventName);
}
try {
TaskListenerInvocation listenerInvocation = new TaskListenerInvocation(taskListener, this, execution);
Context.getProcessEngineConfiguration()
.getDelegateInterceptor()
.handleInvocation(listenerInvocation);
}catch (Exception e) {
throw new ProcessEngineException("Exception while invoking TaskListener: "+e.getMessage(), e);