Class DelegateFlowableEventListener
- java.lang.Object
-
- org.flowable.common.engine.api.delegate.event.AbstractFlowableEventListener
-
- org.flowable.engine.impl.bpmn.helper.BaseDelegateEventListener
-
- org.flowable.engine.impl.bpmn.helper.DelegateFlowableEventListener
-
- All Implemented Interfaces:
FlowableEventListener
public class DelegateFlowableEventListener extends BaseDelegateEventListener
AnFlowableEventListenerimplementation which uses a classname to create a delegateFlowableEventListenerinstance to use for event notification.
In case an entityClass was passed in the constructor, only events that areFlowableEntityEvent's that target an entity of the given type, are dispatched to the delegate.- Author:
- Frederik Heremans
-
-
Field Summary
Fields Modifier and Type Field Description protected StringclassNameprotected FlowableEventListenerdelegateInstanceprotected booleanfailOnException-
Fields inherited from class org.flowable.engine.impl.bpmn.helper.BaseDelegateEventListener
entityClass
-
Fields inherited from class org.flowable.common.engine.api.delegate.event.AbstractFlowableEventListener
onTransaction
-
-
Constructor Summary
Constructors Constructor Description DelegateFlowableEventListener(String className, Class<?> entityClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FlowableEventListenergetDelegateInstance()booleanisFailOnException()voidonEvent(FlowableEvent event)-
Methods inherited from class org.flowable.engine.impl.bpmn.helper.BaseDelegateEventListener
getEntityClass, isValidEvent, setEntityClass
-
Methods inherited from class org.flowable.common.engine.api.delegate.event.AbstractFlowableEventListener
getOnTransaction, isFireOnTransactionLifecycleEvent, setOnTransaction
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.common.engine.api.delegate.event.FlowableEventListener
getTypes
-
-
-
-
Field Detail
-
className
protected String className
-
delegateInstance
protected FlowableEventListener delegateInstance
-
failOnException
protected boolean failOnException
-
-
Method Detail
-
onEvent
public void onEvent(FlowableEvent event)
-
isFailOnException
public boolean isFailOnException()
-
getDelegateInstance
protected FlowableEventListener getDelegateInstance()
-
-