Class DelegateActivitiEventListener
- java.lang.Object
-
- org.activiti.engine.impl.bpmn.helper.BaseDelegateEventListener
-
- org.activiti.engine.impl.bpmn.helper.DelegateActivitiEventListener
-
- All Implemented Interfaces:
ActivitiEventListener
public class DelegateActivitiEventListener extends BaseDelegateEventListener
AnActivitiEventListenerimplementation which uses a classname to create a delegateActivitiEventListenerinstance to use for event notification.
In case an entityClass was passed in the constructor, only events that areActivitiEntityEvent's that target an entity of the given type, are dispatched to the delegate.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringclassNameprotected ActivitiEventListenerdelegateInstanceprotected booleanfailOnException-
Fields inherited from class org.activiti.engine.impl.bpmn.helper.BaseDelegateEventListener
entityClass
-
-
Constructor Summary
Constructors Constructor Description DelegateActivitiEventListener(java.lang.String className, java.lang.Class<?> entityClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActivitiEventListenergetDelegateInstance()booleanisFailOnException()voidonEvent(ActivitiEvent event)Called when an event has been fired-
Methods inherited from class org.activiti.engine.impl.bpmn.helper.BaseDelegateEventListener
isValidEvent, setEntityClass
-
-
-
-
Field Detail
-
className
protected java.lang.String className
-
delegateInstance
protected ActivitiEventListener delegateInstance
-
failOnException
protected boolean failOnException
-
-
Method Detail
-
onEvent
public void onEvent(ActivitiEvent event)
Description copied from interface:ActivitiEventListenerCalled when an event has been fired- Parameters:
event- the event
-
isFailOnException
public boolean isFailOnException()
- Returns:
- whether or not the current operation should fail when this listeners execution throws an exception.
-
getDelegateInstance
protected ActivitiEventListener getDelegateInstance()
-
-