Class MessageThrowingEventListener
- java.lang.Object
-
- org.flowable.common.engine.api.delegate.event.AbstractFlowableEventListener
-
- org.flowable.engine.impl.bpmn.helper.BaseDelegateEventListener
-
- org.flowable.engine.impl.bpmn.helper.MessageThrowingEventListener
-
- All Implemented Interfaces:
FlowableEventListener
public class MessageThrowingEventListener extends BaseDelegateEventListener
AnFlowableEventListenerthat throws a message event when an event is dispatched to it. Sends the message to the execution the event was fired from. If the execution is not subscribed to a message, the process-instance is checked.- Author:
- Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<?>entityClassprotected StringmessageName-
Fields inherited from class org.flowable.common.engine.api.delegate.event.AbstractFlowableEventListener
onTransaction
-
-
Constructor Summary
Constructors Constructor Description MessageThrowingEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisFailOnException()voidonEvent(FlowableEvent event)voidsetMessageName(String messageName)-
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
-
-
-
-
Method Detail
-
onEvent
public void onEvent(FlowableEvent event)
-
setMessageName
public void setMessageName(String messageName)
-
isFailOnException
public boolean isFailOnException()
-
-