public interface UpdateProcessDefinitionSuspensionStateBuilder
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activates the provided process definitions.
|
UpdateProcessDefinitionSuspensionStateBuilder |
executionDate(Date executionDate)
Specify when the suspension state should be updated.
|
UpdateProcessDefinitionSuspensionStateBuilder |
includeProcessInstances(boolean includeProcessInstances)
Specify if the suspension states of the process instances of the provided
process definitions should also be updated.
|
void |
suspend()
Suspends the provided process definitions.
|
UpdateProcessDefinitionSuspensionStateBuilder includeProcessInstances(boolean includeProcessInstances)
false.includeProcessInstances - if true, all related process instances will be
activated / suspended too.UpdateProcessDefinitionSuspensionStateBuilder executionDate(Date executionDate)
executionDate - the date on which the process definition will be activated /
suspended. If null, the process definition is
activated / suspended immediately.void activate()
ProcessEngineException - If no such processDefinition can be found.AuthorizationException - ProcessDefinitionPermissions.SUSPEND permission on Resources.PROCESS_DEFINITIONPermissions.UPDATE permission on Resources.PROCESS_DEFINITIONincludeProcessInstances(boolean) is set to true and the user has none of the following:ProcessInstancePermissions.SUSPEND permission on Resources.PROCESS_INSTANCEProcessDefinitionPermissions.SUSPEND_INSTANCE permission on Resources.PROCESS_DEFINITIONPermissions.UPDATE permission on Resources.PROCESS_INSTANCEPermissions.UPDATE_INSTANCE permission on Resources.PROCESS_DEFINITIONvoid suspend()
ProcessEngineException - If no such processDefinition can be found.AuthorizationException - ProcessDefinitionPermissions.SUSPEND permission on Resources.PROCESS_DEFINITIONPermissions.UPDATE permission on Resources.PROCESS_DEFINITIONincludeProcessInstances(boolean) is set to true and the user has none of the following:ProcessInstancePermissions.SUSPEND permission on Resources.PROCESS_INSTANCEProcessDefinitionPermissions.SUSPEND_INSTANCE permission on Resources.PROCESS_DEFINITIONPermissions.UPDATE permission on Resources.PROCESS_INSTANCEPermissions.UPDATE_INSTANCE permission on Resources.PROCESS_DEFINITIONCopyright © 2021. All rights reserved.