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.
ProcessApplicationInterface.getExecutionListener()
,
ProcessApplicationInterface.getTaskListener()
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE
EVENTNAME_ASSIGNMENT, EVENTNAME_COMPLETE, EVENTNAME_CREATE, EVENTNAME_DELETE
Constructor and Description |
---|
ProcessApplicationEventListenerDelegate() |
Modifier and Type | Method and Description |
---|---|
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) |
public ProcessApplicationEventListenerDelegate()
public void notify(DelegateExecution execution) throws Exception
notify
in interface DelegateListener<DelegateExecution>
notify
in interface ExecutionListener
Exception
public void notify(DelegateTask delegateTask)
notify
in interface TaskListener
protected void performNotification(DelegateExecution execution, Callable<Void> notification) throws Exception
Exception
protected void notifyExecutionListener(DelegateExecution execution) throws Exception
Exception
protected void notifyTaskListener(DelegateTask task) throws Exception
Exception
Copyright © 2019. All rights reserved.