Interface UpdateJobDefinitionSuspensionStateBuilder
-
- All Known Subinterfaces:
UpdateJobDefinitionSuspensionStateTenantBuilder
- All Known Implementing Classes:
UpdateJobDefinitionSuspensionStateBuilderImpl
public interface UpdateJobDefinitionSuspensionStateBuilderFluent builder to update the suspension state of job definitions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate()Activates the provided job definitions.UpdateJobDefinitionSuspensionStateBuilderexecutionDate(java.util.Date executionDate)Specify when the suspension state should be updated.UpdateJobDefinitionSuspensionStateBuilderincludeJobs(boolean includeJobs)Specify if the suspension states of the jobs of the provided job definitions should also be updated.voidsuspend()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(java.util.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.UPDATEpermission onResources.PROCESS_DEFINITION- If
includeJobs(boolean)is set totrueand the user have noPermissions.UPDATE_INSTANCEpermission onResources.PROCESS_DEFINITIONPermissions.UPDATEpermission 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.UPDATEpermission onResources.PROCESS_DEFINITION- If
includeJobs(boolean)is set totrueand the user have noPermissions.UPDATE_INSTANCEpermission onResources.PROCESS_DEFINITIONPermissions.UPDATEpermission on anyResources.PROCESS_INSTANCE- if the current user has no
-
-