org.camunda.bpm.application.impl.event
Class ProcessApplicationEventListenerDelegate

java.lang.Object
  extended by org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate
All Implemented Interfaces:
DelegateListener<DelegateExecution>, ExecutionListener, TaskListener

public class ProcessApplicationEventListenerDelegate
extends Object
implements ExecutionListener, TaskListener

ExecutionListener and TaskListener implementation delegating to the ExecutionListener and TaskListener provided by a ProcessApplication.

If the process application does not provide an execution listener (ie. ProcessApplicationInterface.getExecutionListener() returns null), the request is silently ignored.

If the process application does not provide a task listener (ie. ProcessApplicationInterface.getTaskListener() returns null), the request is silently ignored.

Author:
Daniel Meyer
See Also:
ProcessApplicationInterface.getExecutionListener(), ProcessApplicationInterface.getTaskListener()

Field Summary
 
Fields inherited from interface org.camunda.bpm.engine.delegate.ExecutionListener
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE
 
Fields inherited from interface org.camunda.bpm.engine.delegate.TaskListener
EVENTNAME_ASSIGNMENT, EVENTNAME_COMPLETE, EVENTNAME_CREATE, EVENTNAME_DELETE
 
Constructor Summary
ProcessApplicationEventListenerDelegate()
           
 
Method Summary
 void notify(DelegateExecution execution)
           
 void notify(DelegateTask delegateTask)
           
protected  void notifyExecutionListener(DelegateExecution execution)
           
protected  void notifyTaskListener(DelegateTask task)
           
protected  void performNotification(DelegateExecution execution, Callable<Void> notification)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessApplicationEventListenerDelegate

public ProcessApplicationEventListenerDelegate()
Method Detail

notify

public void notify(DelegateExecution execution)
            throws Exception
Specified by:
notify in interface DelegateListener<DelegateExecution>
Specified by:
notify in interface ExecutionListener
Throws:
Exception

notify

public void notify(DelegateTask delegateTask)
Specified by:
notify in interface TaskListener

performNotification

protected void performNotification(DelegateExecution execution,
                                   Callable<Void> notification)
                            throws Exception
Throws:
Exception

notifyExecutionListener

protected void notifyExecutionListener(DelegateExecution execution)
                                throws Exception
Throws:
Exception

notifyTaskListener

protected void notifyTaskListener(DelegateTask task)
                           throws Exception
Throws:
Exception


Copyright © 2016 camunda services GmbH. All rights reserved.