Class UpdateProcessInstancesSuspensionStateBuilderImpl

    • Field Detail

      • processInstanceIds

        protected java.util.List<java.lang.String> processInstanceIds
      • processDefinitionId

        protected java.lang.String processDefinitionId
    • Constructor Detail

      • UpdateProcessInstancesSuspensionStateBuilderImpl

        public UpdateProcessInstancesSuspensionStateBuilderImpl​(CommandExecutor commandExecutor)
      • UpdateProcessInstancesSuspensionStateBuilderImpl

        public UpdateProcessInstancesSuspensionStateBuilderImpl​(java.util.List<java.lang.String> processInstanceIds)
    • Method Detail

      • suspend

        public void suspend()
        Description copied from interface: UpdateProcessInstanceSuspensionStateBuilder

        Suspends the provided process instances. This means that the execution is stopped, so the token state will not change. However, actions that do not change token state, like setting/removing variables, etc. will succeed.

        Tasks belonging to the suspended process instance will also be suspended. This means that any actions influencing the tasks' lifecycles will fail, such as

        • claiming
        • completing
        • delegation
        • changes in task assignees, owners, etc.
        Actions that only change task properties will succeed, such as changing variables or adding comments.

        If a process instance is in state suspended, the engine will also not execute jobs (timers, messages) associated with this instance.

        If you have a process instance hierarchy, suspending one process instance from the hierarchy will not suspend other process instances from that hierarchy.

        Specified by:
        suspend in interface UpdateProcessInstanceSuspensionStateBuilder
      • suspendAsync

        public Batch suspendAsync()
        Description copied from interface: UpdateProcessInstancesSuspensionStateBuilder

        Suspends the provided process instances asynchronously. This means that the execution is stopped, so the token state will not change. However, actions that do not change token state, like setting/removing variables, etc. will succeed.

        Tasks belonging to the suspended process instance will also be suspended. This means that any actions influencing the tasks' lifecycles will fail, such as

        • claiming
        • completing
        • delegation
        • changes in task assignees, owners, etc.
        Actions that only change task properties will succeed, such as changing variables or adding comments.

        If a process instance is in state suspended, the engine will also not execute jobs (timers, messages) associated with this instance.

        If you have a process instance hierarchy, suspending one process instance from the hierarchy will not suspend other process instances from that hierarchy.

        Specified by:
        suspendAsync in interface UpdateProcessInstancesSuspensionStateBuilder
      • getProcessInstanceIds

        public java.util.List<java.lang.String> getProcessInstanceIds()