Interface UpdateJobDefinitionSuspensionStateBuilder
- 
- All Known Subinterfaces:
- UpdateJobDefinitionSuspensionStateTenantBuilder
 - All Known Implementing Classes:
- UpdateJobDefinitionSuspensionStateBuilderImpl
 
 public interface UpdateJobDefinitionSuspensionStateBuilderFluent builder to update the suspension state of job definitions.
- 
- 
Method SummaryAll 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- 
includeJobsUpdateJobDefinitionSuspensionStateBuilder includeJobs(boolean includeJobs) Specify if the suspension states of the jobs of the provided job definitions should also be updated. Default isfalse.- Parameters:
- includeJobs- if- true, all related jobs will be activated / suspended too.
- Returns:
- the builder
 
 - 
executionDateUpdateJobDefinitionSuspensionStateBuilder 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. If- null, the job definition is activated / suspended immediately.
- Returns:
- the builder
 
 - 
activatevoid activate() Activates the provided job definitions.- Throws:
- AuthorizationException-
- if the current user has no
- Permissions.UPDATEpermission on- Resources.PROCESS_DEFINITION
- If
- includeJobs(boolean)is set to- trueand the user have no- Permissions.UPDATE_INSTANCEpermission on- Resources.PROCESS_DEFINITION- Permissions.UPDATEpermission on any- Resources.PROCESS_INSTANCE
- if the current user has no
 
 - 
suspendvoid 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 on- Resources.PROCESS_DEFINITION
- If
- includeJobs(boolean)is set to- trueand the user have no- Permissions.UPDATE_INSTANCEpermission on- Resources.PROCESS_DEFINITION- Permissions.UPDATEpermission on any- Resources.PROCESS_INSTANCE
- if the current user has no
 
 
- 
 
-