Class MessageThrowingEventListener

  • All Implemented Interfaces:
    ActivitiEventListener

    public class MessageThrowingEventListener
    extends BaseDelegateEventListener
    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 Detail

      • messageName

        protected java.lang.String messageName
      • entityClass

        protected java.lang.Class<?> entityClass
    • Constructor Detail

      • MessageThrowingEventListener

        public MessageThrowingEventListener()
    • Method Detail

      • onEvent

        public void onEvent​(ActivitiEvent event)
        Description copied from interface: ActivitiEventListener
        Called when an event has been fired
        Parameters:
        event - the event
      • setMessageName

        public void setMessageName​(java.lang.String messageName)
      • isFailOnException

        public boolean isFailOnException()
        Returns:
        whether or not the current operation should fail when this listeners execution throws an exception.