Package org.bonitasoft.engine.execution
Class ProcessInstanceInterruptor
java.lang.Object
org.bonitasoft.engine.execution.ProcessInstanceInterruptor
- Author:
- Elias Ricken de Medeiros, Matthieu Chaffotte
-
Constructor Summary
ConstructorsConstructorDescriptionProcessInstanceInterruptor(ProcessInstanceService processInstanceService, FlowNodeInstanceService flowNodeInstanceService, ContainerRegistry containerRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidinterruptChildrenOfFlowNodeInstance(SFlowNodeInstance flowNodeInstance, SStateCategory stateCategory) Interrupt children of given flow node instancevoidinterruptChildrenOfProcessInstance(long processInstanceId, SStateCategory stateCategory, long notToInterruptFlownodeId) Interrupt children of given process instance excluding notToInterruptFlownodeIdbooleaninterruptProcessInstance(long processInstanceId, SStateCategory stateCategory) Interrupt the given process instance AND its childrenvoidinterruptProcessInstance(long processInstanceId, SStateCategory stateCategory, long exceptionChildId) Interrupt the given process instant AND its children, excluding the exceptionChildId
-
Constructor Details
-
ProcessInstanceInterruptor
public ProcessInstanceInterruptor(ProcessInstanceService processInstanceService, FlowNodeInstanceService flowNodeInstanceService, ContainerRegistry containerRegistry)
-
-
Method Details
-
interruptProcessInstance
public boolean interruptProcessInstance(long processInstanceId, SStateCategory stateCategory) throws SBonitaException Interrupt the given process instance AND its children- Parameters:
processInstanceId- the process instancestateCategory- the state category- Returns:
- true if some children were interrupted
- Throws:
SBonitaException
-
interruptProcessInstance
public void interruptProcessInstance(long processInstanceId, SStateCategory stateCategory, long exceptionChildId) throws SBonitaException Interrupt the given process instant AND its children, excluding the exceptionChildId- Parameters:
processInstanceId- the process instancestateCategory- the state categoryexceptionChildId- the element to exclude- Throws:
SBonitaException
-
interruptChildrenOfProcessInstance
public void interruptChildrenOfProcessInstance(long processInstanceId, SStateCategory stateCategory, long notToInterruptFlownodeId) throws SBonitaException Interrupt children of given process instance excluding notToInterruptFlownodeId- Parameters:
processInstanceId- the process instancestateCategory- the state category in which children must be setnotToInterruptFlownodeId- the element to exclude- Throws:
SBonitaException
-
interruptChildrenOfFlowNodeInstance
public void interruptChildrenOfFlowNodeInstance(SFlowNodeInstance flowNodeInstance, SStateCategory stateCategory) throws SBonitaException Interrupt children of given flow node instance- Parameters:
flowNodeInstance- the flow node instancestateCategory- the state category in which children must be set- Throws:
SBonitaException
-