Class ProcessInstanceInterruptor


  • public class ProcessInstanceInterruptor
    extends java.lang.Object
    Author:
    Elias Ricken de Medeiros, Matthieu Chaffotte
    • Method Detail

      • interruptProcessInstance

        public boolean interruptProcessInstance​(long processInstanceId,
                                                SStateCategory stateCategory)
                                         throws SBonitaException
        Interrupt the given process instance AND its children
        Parameters:
        processInstanceId - the process instance
        stateCategory - 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 instance
        stateCategory - the state category
        exceptionChildId - 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 instance
        stateCategory - the state category in which children must be set
        notToInterruptFlownodeId - 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 instance
        stateCategory - the state category in which children must be set
        Throws:
        SBonitaException