public class EventsHandler extends Object
| Constructor and Description |
|---|
EventsHandler(org.bonitasoft.engine.scheduler.SchedulerService schedulerService,
org.bonitasoft.engine.core.expression.control.api.ExpressionResolverService expressionResolverService,
org.bonitasoft.engine.core.process.instance.api.event.EventInstanceService eventInstanceService,
BPMInstancesCreator bpmInstancesCreator,
org.bonitasoft.engine.data.instance.api.DataInstanceService dataInstanceService,
ProcessDefinitionService processDefinitionService,
ContainerRegistry containerRegistry,
org.bonitasoft.engine.core.process.instance.api.ProcessInstanceService processInstanceService,
org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceService flowNodeInstanceService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger) |
| Modifier and Type | Method and Description |
|---|---|
EventHandlerStrategy |
getHandler(SEventTriggerType triggerType) |
void |
handleCatchEvent(SProcessDefinition processDefinition,
SEventDefinition eventDefinition,
org.bonitasoft.engine.core.process.instance.model.event.SEventInstance eventInstance)
called when a catchEvent is reached
e.g.
|
void |
handleCatchMessage(SProcessDefinition processDefinition,
SReceiveTaskDefinition receiveTaskDefinition,
org.bonitasoft.engine.core.process.instance.model.SReceiveTaskInstance receiveTaskInstance) |
void |
handleEventSubProcess(SProcessDefinition sDefinition,
org.bonitasoft.engine.core.process.instance.model.SProcessInstance parentProcessInstance) |
boolean |
handlePostThrowEvent(SProcessDefinition sProcessDefinition,
SEndEventDefinition sEndEventDefinition,
org.bonitasoft.engine.core.process.instance.model.event.SThrowEventInstance sThrowEventInstance,
org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance sFlowNodeInstance) |
void |
handleThrowEvent(SEventTriggerDefinition sEventTriggerDefinition)
called when a BPM event is triggered by the API
|
void |
handleThrowEvent(SProcessDefinition processDefinition,
SEventDefinition eventDefinition,
org.bonitasoft.engine.core.process.instance.model.event.SEventInstance eventInstance)
called when we reach a throw event in the flow of a process
|
void |
handleThrowMessage(SProcessDefinition processDefinition,
SSendTaskDefinition sendTaskDefinition,
org.bonitasoft.engine.core.process.instance.model.SSendTaskInstance sendTaskInstance) |
void |
setProcessExecutor(ProcessExecutor processExecutor) |
void |
triggerCatchEvent(SEventTriggerType eventTriggerType,
Long processDefinitionId,
Long targetSFlowNodeDefinitionId,
String containerType,
long subProcessId,
Long parentProcessInstanceId,
Long rootProcessInstanceId,
Boolean isInterrupting) |
void |
triggerCatchEvent(String eventType,
Long processDefinitionId,
Long targetSFlowNodeDefinitionId,
Long flowNodeInstanceId,
String containerType) |
void |
triggerCatchEvent(org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent waitingEvent,
Long triggeringElementID)
When a trigger is 'launched' the catch event is reached and is waken up/created using its waiting event
Depending on the type it will execute the catch event of instantiate the process/subprocess
|
void |
unregisterEventSubProcess(SProcessDefinition sDefinition,
org.bonitasoft.engine.core.process.instance.model.SProcessInstance parentProcessInstance) |
public EventsHandler(org.bonitasoft.engine.scheduler.SchedulerService schedulerService,
org.bonitasoft.engine.core.expression.control.api.ExpressionResolverService expressionResolverService,
org.bonitasoft.engine.core.process.instance.api.event.EventInstanceService eventInstanceService,
BPMInstancesCreator bpmInstancesCreator,
org.bonitasoft.engine.data.instance.api.DataInstanceService dataInstanceService,
ProcessDefinitionService processDefinitionService,
ContainerRegistry containerRegistry,
org.bonitasoft.engine.core.process.instance.api.ProcessInstanceService processInstanceService,
org.bonitasoft.engine.core.process.instance.api.FlowNodeInstanceService flowNodeInstanceService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger)
public void setProcessExecutor(ProcessExecutor processExecutor)
public void handleCatchEvent(SProcessDefinition processDefinition, SEventDefinition eventDefinition, org.bonitasoft.engine.core.process.instance.model.event.SEventInstance eventInstance) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
processDefinition - eventDefinition - eventInstance - org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void handleCatchMessage(SProcessDefinition processDefinition, SReceiveTaskDefinition receiveTaskDefinition, org.bonitasoft.engine.core.process.instance.model.SReceiveTaskInstance receiveTaskInstance) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void handleEventSubProcess(SProcessDefinition sDefinition, org.bonitasoft.engine.core.process.instance.model.SProcessInstance parentProcessInstance) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void unregisterEventSubProcess(SProcessDefinition sDefinition, org.bonitasoft.engine.core.process.instance.model.SProcessInstance parentProcessInstance) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void handleThrowEvent(SProcessDefinition processDefinition, SEventDefinition eventDefinition, org.bonitasoft.engine.core.process.instance.model.event.SEventInstance eventInstance) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
processDefinition - eventDefinition - eventInstance - org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void handleThrowMessage(SProcessDefinition processDefinition, SSendTaskDefinition sendTaskDefinition, org.bonitasoft.engine.core.process.instance.model.SSendTaskInstance sendTaskInstance) throws org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceCreationException, org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageInstanceCreationException, org.bonitasoft.engine.data.instance.exception.SDataInstanceException, org.bonitasoft.engine.expression.exception.SExpressionException
org.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SEventTriggerInstanceCreationExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.event.trigger.SMessageInstanceCreationExceptionorg.bonitasoft.engine.data.instance.exception.SDataInstanceExceptionorg.bonitasoft.engine.expression.exception.SExpressionExceptionpublic boolean handlePostThrowEvent(SProcessDefinition sProcessDefinition, SEndEventDefinition sEndEventDefinition, org.bonitasoft.engine.core.process.instance.model.event.SThrowEventInstance sThrowEventInstance, org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance sFlowNodeInstance) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void handleThrowEvent(SEventTriggerDefinition sEventTriggerDefinition) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
sEventTriggerDefinition - org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void triggerCatchEvent(org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent waitingEvent,
Long triggeringElementID)
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
waitingEvent - triggeringElementID - org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void triggerCatchEvent(String eventType, Long processDefinitionId, Long targetSFlowNodeDefinitionId, Long flowNodeInstanceId, String containerType) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void triggerCatchEvent(SEventTriggerType eventTriggerType, Long processDefinitionId, Long targetSFlowNodeDefinitionId, String containerType, long subProcessId, Long parentProcessInstanceId, Long rootProcessInstanceId, Boolean isInterrupting) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic EventHandlerStrategy getHandler(SEventTriggerType triggerType)
Copyright © 2016 Bonitasoft S.A.. All rights reserved.