Interface UpdateProcessDefinitionSuspensionStateBuilder
- All Known Subinterfaces:
UpdateProcessDefinitionSuspensionStateTenantBuilder
- All Known Implementing Classes:
UpdateProcessDefinitionSuspensionStateBuilderImpl
public interface UpdateProcessDefinitionSuspensionStateBuilder
Fluent builder to update the suspension state of process definitions.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Activates the provided process definitions.executionDate
(Date executionDate) Specify when the suspension state should be updated.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.
-
Method Details
-
includeProcessInstances
UpdateProcessDefinitionSuspensionStateBuilder includeProcessInstances(boolean includeProcessInstances) Specify if the suspension states of the process instances of the provided process definitions should also be updated. Default isfalse
.- Parameters:
includeProcessInstances
- iftrue
, all related process instances will be activated / suspended too.- Returns:
- the builder
-
executionDate
Specify when the suspension state should be updated. Note that the job executor needs to be active to use this.- Parameters:
executionDate
- the date on which the process definition will be activated / suspended. Ifnull
, the process definition is activated / suspended immediately.- Returns:
- the builder
-
activate
void activate()Activates the provided process definitions.- Throws:
ProcessEngineException
- If no such processDefinition can be found.AuthorizationException
-- if the user has none of the following:
ProcessDefinitionPermissions.SUSPEND
permission onResources.PROCESS_DEFINITION
Permissions.UPDATE
permission onResources.PROCESS_DEFINITION
- if
includeProcessInstances(boolean)
is set totrue
and the user has none of the following:ProcessInstancePermissions.SUSPEND
permission onResources.PROCESS_INSTANCE
ProcessDefinitionPermissions.SUSPEND_INSTANCE
permission onResources.PROCESS_DEFINITION
Permissions.UPDATE
permission onResources.PROCESS_INSTANCE
Permissions.UPDATE_INSTANCE
permission onResources.PROCESS_DEFINITION
-
suspend
void suspend()Suspends the provided process definitions. If a process definition is in state suspended, it will not be possible to start new process instances based on this process definition.- Throws:
ProcessEngineException
- If no such processDefinition can be found.AuthorizationException
-- if the user has none of the following:
ProcessDefinitionPermissions.SUSPEND
permission onResources.PROCESS_DEFINITION
Permissions.UPDATE
permission onResources.PROCESS_DEFINITION
- if
includeProcessInstances(boolean)
is set totrue
and the user has none of the following:ProcessInstancePermissions.SUSPEND
permission onResources.PROCESS_INSTANCE
ProcessDefinitionPermissions.SUSPEND_INSTANCE
permission onResources.PROCESS_DEFINITION
Permissions.UPDATE
permission onResources.PROCESS_INSTANCE
Permissions.UPDATE_INSTANCE
permission onResources.PROCESS_DEFINITION
-