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 TypeMethodDescriptionvoidactivate()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.voidsuspend()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.SUSPENDpermission onResources.PROCESS_DEFINITIONPermissions.UPDATEpermission onResources.PROCESS_DEFINITION
- if
includeProcessInstances(boolean)is set totrueand 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_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.SUSPENDpermission onResources.PROCESS_DEFINITIONPermissions.UPDATEpermission onResources.PROCESS_DEFINITION
- if
includeProcessInstances(boolean)is set totrueand 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_DEFINITION
-