Interface UpdateJobDefinitionSuspensionStateBuilder
-
- All Known Subinterfaces:
UpdateJobDefinitionSuspensionStateTenantBuilder
- All Known Implementing Classes:
UpdateJobDefinitionSuspensionStateBuilderImpl
public interface UpdateJobDefinitionSuspensionStateBuilder
Fluent builder to update the suspension state of job definitions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activate()
Activates the provided job definitions.UpdateJobDefinitionSuspensionStateBuilder
executionDate(Date executionDate)
Specify when the suspension state should be updated.UpdateJobDefinitionSuspensionStateBuilder
includeJobs(boolean includeJobs)
Specify if the suspension states of the jobs of the provided job definitions should also be updated.void
suspend()
Suspends the provided job definitions.
-
-
-
Method Detail
-
includeJobs
UpdateJobDefinitionSuspensionStateBuilder includeJobs(boolean includeJobs)
Specify if the suspension states of the jobs of the provided job definitions should also be updated. Default isfalse
.- Parameters:
includeJobs
- iftrue
, all related jobs will be activated / suspended too.- Returns:
- the builder
-
executionDate
UpdateJobDefinitionSuspensionStateBuilder executionDate(Date 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 job definition will be activated / suspended. Ifnull
, the job definition is activated / suspended immediately.- Returns:
- the builder
-
activate
void activate()
Activates the provided job definitions.- Throws:
AuthorizationException
-- if the current user has no
Permissions.UPDATE
permission onResources.PROCESS_DEFINITION
- If
includeJobs(boolean)
is set totrue
and the user have noPermissions.UPDATE_INSTANCE
permission onResources.PROCESS_DEFINITION
Permissions.UPDATE
permission on anyResources.PROCESS_INSTANCE
- if the current user has no
-
suspend
void suspend()
Suspends the provided job definitions. If a job definition is in state suspended, it will be ignored by the job executor.- Throws:
AuthorizationException
-- if the current user has no
Permissions.UPDATE
permission onResources.PROCESS_DEFINITION
- If
includeJobs(boolean)
is set totrue
and the user have noPermissions.UPDATE_INSTANCE
permission onResources.PROCESS_DEFINITION
Permissions.UPDATE
permission on anyResources.PROCESS_INSTANCE
- if the current user has no
-
-