Class ErrorEventHandlerStrategy
- java.lang.Object
-
- org.bonitasoft.engine.execution.event.EventHandlerStrategy
-
- org.bonitasoft.engine.execution.event.CoupleEventHandlerStrategy
-
- org.bonitasoft.engine.execution.event.ErrorEventHandlerStrategy
-
public class ErrorEventHandlerStrategy extends CoupleEventHandlerStrategy
- Author:
- Elias Ricken de Medeiros, Celine Souchet, Matthieu Chaffotte
-
-
Constructor Summary
Constructors Constructor Description ErrorEventHandlerStrategy(EventInstanceService eventInstanceService, ProcessInstanceService processInstanceService, FlowNodeInstanceService flowNodeInstanceService, ProcessDefinitionService processDefinitionService, EventsHandler eventsHandler, ProcessInstanceInterruptor processInstanceInterruptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationsWithContextgetOperations(SWaitingEvent waitingEvent, java.lang.Long triggeringElementID)protected SWaitingErrorEventgetWaitingErrorEventFromBoundary(java.lang.String errorCode, SFlowNodeInstance flowNodeInstance, java.util.List<SBoundaryEventDefinition> boundaryEventDefinitions)protected SWaitingErrorEventgetWaitingErrorEventFromBoundary(SThrowEventInstance eventInstance, java.lang.String errorCode, SFlowNodeInstance flowNodeInstance)voidhandleCatchEvent(SProcessDefinition processDefinition, SEventDefinition eventDefinition, SCatchEventInstance eventInstance, SEventTriggerDefinition sEventTriggerDefinition)voidhandleEventSubProcess(SProcessDefinition processDefinition, SEventDefinition eventDefinition, SEventTriggerDefinition sEventTriggerDefinition, long subProcessId, SProcessInstance parentProcessInstance)booleanhandlePostThrowEvent(SProcessDefinition processDefinition, SEndEventDefinition sEventDefinition, SThrowEventInstance sThrowEventInstance, SEventTriggerDefinition sEventTriggerDefinition, SFlowNodeInstance sFlowNodeInstance)voidhandleThrowEvent(SProcessDefinition processDefinition, SEventDefinition eventDefinition, SThrowEventInstance eventInstance, SEventTriggerDefinition sEventTriggerDefinition)-
Methods inherited from class org.bonitasoft.engine.execution.event.CoupleEventHandlerStrategy
getEventInstanceService, unregisterCatchEvent
-
Methods inherited from class org.bonitasoft.engine.execution.event.EventHandlerStrategy
getParentContainerType, handleThrowEvent
-
-
-
-
Constructor Detail
-
ErrorEventHandlerStrategy
public ErrorEventHandlerStrategy(EventInstanceService eventInstanceService, ProcessInstanceService processInstanceService, FlowNodeInstanceService flowNodeInstanceService, ProcessDefinitionService processDefinitionService, EventsHandler eventsHandler, ProcessInstanceInterruptor processInstanceInterruptor)
-
-
Method Detail
-
handleThrowEvent
public void handleThrowEvent(SProcessDefinition processDefinition, SEventDefinition eventDefinition, SThrowEventInstance eventInstance, SEventTriggerDefinition sEventTriggerDefinition) throws SBonitaException
- Specified by:
handleThrowEventin classEventHandlerStrategy- Throws:
SBonitaException
-
handlePostThrowEvent
public boolean handlePostThrowEvent(SProcessDefinition processDefinition, SEndEventDefinition sEventDefinition, SThrowEventInstance sThrowEventInstance, SEventTriggerDefinition sEventTriggerDefinition, SFlowNodeInstance sFlowNodeInstance) throws SBonitaException
- Overrides:
handlePostThrowEventin classEventHandlerStrategy- Throws:
SBonitaException
-
getWaitingErrorEventFromBoundary
protected SWaitingErrorEvent getWaitingErrorEventFromBoundary(SThrowEventInstance eventInstance, java.lang.String errorCode, SFlowNodeInstance flowNodeInstance) throws SBonitaException
- Throws:
SBonitaException
-
getWaitingErrorEventFromBoundary
protected SWaitingErrorEvent getWaitingErrorEventFromBoundary(java.lang.String errorCode, SFlowNodeInstance flowNodeInstance, java.util.List<SBoundaryEventDefinition> boundaryEventDefinitions) throws SWaitingEventReadException
- Throws:
SWaitingEventReadException
-
handleCatchEvent
public void handleCatchEvent(SProcessDefinition processDefinition, SEventDefinition eventDefinition, SCatchEventInstance eventInstance, SEventTriggerDefinition sEventTriggerDefinition) throws SBonitaException
- Specified by:
handleCatchEventin classEventHandlerStrategy- Throws:
SBonitaException
-
getOperations
public OperationsWithContext getOperations(SWaitingEvent waitingEvent, java.lang.Long triggeringElementID)
- Specified by:
getOperationsin classEventHandlerStrategy
-
handleEventSubProcess
public void handleEventSubProcess(SProcessDefinition processDefinition, SEventDefinition eventDefinition, SEventTriggerDefinition sEventTriggerDefinition, long subProcessId, SProcessInstance parentProcessInstance) throws SBonitaException
- Specified by:
handleEventSubProcessin classEventHandlerStrategy- Throws:
SBonitaException
-
-