Class DelegateExpressionFlowableEventListener

All Implemented Interfaces:
FlowableEventListener

public class DelegateExpressionFlowableEventListener extends BaseDelegateEventListener
An FlowableEventListener implementation which resolves an expression to a delegate FlowableEventListener instance and uses this for event notification.

In case an entityClass was passed in the constructor, only events that are FlowableEntityEvent's that target an entity of the given type, are dispatched to the delegate.
Author:
Frederik Heremans
  • Field Details

    • expression

      protected Expression expression
    • failOnException

      protected boolean failOnException
  • Constructor Details

    • DelegateExpressionFlowableEventListener

      public DelegateExpressionFlowableEventListener(Expression expression, Class<?> entityClass)
  • Method Details

    • onEvent

      public void onEvent(FlowableEvent event)
    • isFailOnException

      public boolean isFailOnException()