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_DEFINITION
Permissions.UPDATE
permission on Resources.PROCESS_DEFINITION
includeProcessInstances(boolean)
is set to true
and the user has none of the following:ProcessInstancePermissions.SUSPEND
permission on Resources.PROCESS_INSTANCE
ProcessDefinitionPermissions.SUSPEND_INSTANCE
permission on Resources.PROCESS_DEFINITION
Permissions.UPDATE
permission on Resources.PROCESS_INSTANCE
Permissions.UPDATE_INSTANCE
permission on Resources.PROCESS_DEFINITION
void suspend()
ProcessEngineException
- If no such processDefinition can be found.AuthorizationException
- ProcessDefinitionPermissions.SUSPEND
permission on Resources.PROCESS_DEFINITION
Permissions.UPDATE
permission on Resources.PROCESS_DEFINITION
includeProcessInstances(boolean)
is set to true
and the user has none of the following:ProcessInstancePermissions.SUSPEND
permission on Resources.PROCESS_INSTANCE
ProcessDefinitionPermissions.SUSPEND_INSTANCE
permission on Resources.PROCESS_DEFINITION
Permissions.UPDATE
permission on Resources.PROCESS_INSTANCE
Permissions.UPDATE_INSTANCE
permission on Resources.PROCESS_DEFINITION
Copyright © 2021. All rights reserved.