org.camunda.bpm.engine.runtime
Interface UpdateProcessInstanceSuspensionStateBuilder

All Known Subinterfaces:
UpdateProcessInstanceSuspensionStateTenantBuilder
All Known Implementing Classes:
UpdateProcessInstanceSuspensionStateBuilderImpl

public interface UpdateProcessInstanceSuspensionStateBuilder

Fluent builder to update the suspension state of process instances.


Method Summary
 void activate()
           Activates the provided process instances.
 void suspend()
           Suspends the provided process instances.
 

Method Detail

activate

void activate()

Activates the provided process instances.

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

Throws:
ProcessEngineException - If no such processDefinition can be found.
AuthorizationException - if the user has no Permissions.UPDATE_INSTANCE permission on Resources.PROCESS_DEFINITION.

suspend

void suspend()

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

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.

Throws:
ProcessEngineException - If no such processDefinition can be found.
AuthorizationException - if the user has no Permissions.UPDATE_INSTANCE permission on Resources.PROCESS_DEFINITION.


Copyright © 2016 camunda services GmbH. All rights reserved.