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
- Permissions.UPDATE
permission on
Resources.PROCESS_DEFINITION
includeProcessInstances(boolean)
is set to
true
and the user have no Permissions.UPDATE
permission on Resources.PROCESS_INSTANCE
or no
Permissions.UPDATE_INSTANCE
permission on
Resources.PROCESS_DEFINITION
.void suspend()
ProcessEngineException
- If no such processDefinition can be found.AuthorizationException
- Permissions.UPDATE
permission on
Resources.PROCESS_DEFINITION
includeProcessInstances(boolean)
is set to
true
and the user have no Permissions.UPDATE
permission on Resources.PROCESS_INSTANCE
or no
Permissions.UPDATE_INSTANCE
permission on
Resources.PROCESS_DEFINITION
.Copyright © 2018. All rights reserved.