Class ErrorThrowingEventListener

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

public class ErrorThrowingEventListener extends BaseDelegateEventListener
An ActivitiEventListener that throws a error event when an event is dispatched to it.
  • Field Details

    • errorCode

      protected String errorCode
  • Constructor Details

    • ErrorThrowingEventListener

      public ErrorThrowingEventListener()
  • Method Details

    • onEvent

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

      protected void onEventInternal(ActivitiEvent event)
    • setErrorCode

      public void setErrorCode(String errorCode)
    • isFailOnException

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