Class MessageThrowingEventListener

All Implemented Interfaces:
FlowableEventListener

public class MessageThrowingEventListener extends BaseDelegateEventListener
An FlowableEventListener 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.
Author:
Tijs Rademakers
  • Field Details

    • messageName

      protected String messageName
    • entityClass

      protected Class<?> entityClass
  • Constructor Details

    • MessageThrowingEventListener

      public MessageThrowingEventListener()
  • Method Details

    • onEvent

      public void onEvent(FlowableEvent event)
    • setMessageName

      public void setMessageName(String messageName)
    • isFailOnException

      public boolean isFailOnException()