Package org.bonitasoft.engine.execution
Class ProcessInstanceInterruptor
- java.lang.Object
-
- org.bonitasoft.engine.execution.ProcessInstanceInterruptor
-
public class ProcessInstanceInterruptor extends java.lang.Object- Author:
- Elias Ricken de Medeiros, Matthieu Chaffotte
-
-
Constructor Summary
Constructors Constructor Description ProcessInstanceInterruptor(ProcessInstanceService processInstanceService, FlowNodeInstanceService flowNodeInstanceService, ContainerRegistry containerRegistry, TechnicalLoggerService technicalLoggerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinterruptChildrenOfFlowNodeInstance(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 Detail
-
ProcessInstanceInterruptor
public ProcessInstanceInterruptor(ProcessInstanceService processInstanceService, FlowNodeInstanceService flowNodeInstanceService, ContainerRegistry containerRegistry, TechnicalLoggerService technicalLoggerService)
-
-
Method Detail
-
interruptProcessInstance
public boolean interruptProcessInstance(long processInstanceId, SStateCategory stateCategory) throws SBonitaExceptionInterrupt 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 SBonitaExceptionInterrupt 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 SBonitaExceptionInterrupt 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
-
-