Interface UpdateProcessInstanceSuspensionStateBuilder
-
- All Known Subinterfaces:
UpdateProcessInstancesSuspensionStateBuilder,UpdateProcessInstanceSuspensionStateTenantBuilder
- All Known Implementing Classes:
UpdateProcessInstancesSuspensionStateBuilderImpl,UpdateProcessInstanceSuspensionStateBuilderImpl
public interface UpdateProcessInstanceSuspensionStateBuilderFluent builder to update the suspension state of process instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate()Activates the provided process instances.voidsuspend()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 none of the following:ProcessInstancePermissions.SUSPENDpermission onResources.PROCESS_INSTANCEProcessDefinitionPermissions.SUSPEND_INSTANCEpermission onResources.PROCESS_DEFINITIONPermissions.UPDATEpermission onResources.PROCESS_INSTANCEPermissions.UPDATE_INSTANCEpermission onResources.PROCESS_DEFINITIONBadUserRequestException- When the affected instances count exceeds the maximum results limit. A maximum results limit can be specified with the process engine configuration propertyqueryMaxResultsLimit(defaultInteger.MAX_VALUE). Please use the batch operationUpdateProcessInstancesSuspensionStateBuilder.activateAsync()instead.
-
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
- claiming
- completing
- delegation
- changes in task assignees, owners, etc.
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 none of the following:ProcessInstancePermissions.SUSPENDpermission onResources.PROCESS_INSTANCEProcessDefinitionPermissions.SUSPEND_INSTANCEpermission onResources.PROCESS_DEFINITIONPermissions.UPDATEpermission onResources.PROCESS_INSTANCEPermissions.UPDATE_INSTANCEpermission onResources.PROCESS_DEFINITIONBadUserRequestException- When the affected instances count exceeds the maximum results limit. A maximum results limit can be specified with the process engine configuration propertyqueryMaxResultsLimit(defaultInteger.MAX_VALUE). Please see the batch operationUpdateProcessInstancesSuspensionStateBuilder.suspendAsync()instead.
-
-