Class DelegateExpressionActivitiEventListener

java.lang.Object
org.activiti.engine.impl.bpmn.helper.BaseDelegateEventListener
org.activiti.engine.impl.bpmn.helper.DelegateExpressionActivitiEventListener
All Implemented Interfaces:
ActivitiEventListener

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

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

    • expression

      protected Expression expression
    • failOnException

      protected boolean failOnException
  • Constructor Details

    • DelegateExpressionActivitiEventListener

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

    • onEvent

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

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