Class MessageThrowingEventListener
java.lang.Object
org.activiti.engine.impl.bpmn.helper.BaseDelegateEventListener
org.activiti.engine.impl.bpmn.helper.MessageThrowingEventListener
- All Implemented Interfaces:
ActivitiEventListener
An
ActivitiEventListener that 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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidonEvent(ActivitiEvent event) Called when an event has been firedvoidsetMessageName(String messageName) Methods inherited from class org.activiti.engine.impl.bpmn.helper.BaseDelegateEventListener
isValidEvent, setEntityClass
-
Field Details
-
messageName
-
entityClass
-
-
Constructor Details
-
MessageThrowingEventListener
public MessageThrowingEventListener()
-
-
Method Details
-
onEvent
Description copied from interface:ActivitiEventListenerCalled when an event has been fired- Parameters:
event- the event
-
setMessageName
-
isFailOnException
public boolean isFailOnException()- Returns:
- whether or not the current operation should fail when this listeners execution throws an exception.
-