Class ProcessApplicationEventListenerDelegate
- java.lang.Object
-
- org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate
-
- All Implemented Interfaces:
DelegateListener<DelegateExecution>
,ExecutionListener
,TaskListener
public class ProcessApplicationEventListenerDelegate extends java.lang.Object implements ExecutionListener, TaskListener
ExecutionListener
andTaskListener
implementation delegating to theExecutionListener
andTaskListener
provided by aProcessApplication
.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, EVENTNAME_TIMEOUT, EVENTNAME_UPDATE
-
-
Constructor Summary
Constructors Constructor Description ProcessApplicationEventListenerDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
notify(DelegateExecution execution)
void
notify(DelegateTask delegateTask)
protected void
notifyExecutionListener(DelegateExecution execution)
protected void
notifyTaskListener(DelegateTask task)
protected void
performNotification(DelegateExecution execution, java.util.concurrent.Callable<java.lang.Void> notification)
-
-
-
Method Detail
-
notify
public void notify(DelegateExecution execution) throws java.lang.Exception
- Specified by:
notify
in interfaceDelegateListener<DelegateExecution>
- Specified by:
notify
in interfaceExecutionListener
- Throws:
java.lang.Exception
-
notify
public void notify(DelegateTask delegateTask)
- Specified by:
notify
in interfaceTaskListener
-
performNotification
protected void performNotification(DelegateExecution execution, java.util.concurrent.Callable<java.lang.Void> notification) throws java.lang.Exception
- Throws:
java.lang.Exception
-
notifyExecutionListener
protected void notifyExecutionListener(DelegateExecution execution) throws java.lang.Exception
- Throws:
java.lang.Exception
-
notifyTaskListener
protected void notifyTaskListener(DelegateTask task) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-