Class UpdateJobDefinitionSuspensionStateBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.management.UpdateJobDefinitionSuspensionStateBuilderImpl
- All Implemented Interfaces:
UpdateJobDefinitionSuspensionStateBuilder,UpdateJobDefinitionSuspensionStateSelectBuilder,UpdateJobDefinitionSuspensionStateTenantBuilder
public class UpdateJobDefinitionSuspensionStateBuilderImpl
extends Object
implements UpdateJobDefinitionSuspensionStateBuilder, UpdateJobDefinitionSuspensionStateSelectBuilder, UpdateJobDefinitionSuspensionStateTenantBuilder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a builder without CommandExecutor which can not be used to update the suspension state viaactivate()orsuspend().UpdateJobDefinitionSuspensionStateBuilderImpl(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Activates the provided job definitions.byJobDefinitionId(String jobDefinitionId) Selects the job definition with the given id.byProcessDefinitionId(String processDefinitionId) Selects the job definitions of the process definition with the given id.byProcessDefinitionKey(String processDefinitionKey) Selects the job definitions of the process definitions with the given key.executionDate(Date executionDate) Specify when the suspension state should be updated.includeJobs(boolean includeJobs) Specify if the suspension states of the jobs of the provided job definitions should also be updated.booleanbooleanprocessDefinitionTenantId(String tenantId) Specify the id of the tenant the process definition belongs to.Specify that the process definition belongs to no tenant.voidsuspend()Suspends the provided job definitions.protected void
-
Field Details
-
commandExecutor
-
jobDefinitionId
-
processDefinitionKey
-
processDefinitionId
-
processDefinitionTenantId
-
isProcessDefinitionTenantIdSet
protected boolean isProcessDefinitionTenantIdSet -
includeJobs
protected boolean includeJobs -
executionDate
-
-
Constructor Details
-
UpdateJobDefinitionSuspensionStateBuilderImpl
-
UpdateJobDefinitionSuspensionStateBuilderImpl
public UpdateJobDefinitionSuspensionStateBuilderImpl()Creates a builder without CommandExecutor which can not be used to update the suspension state viaactivate()orsuspend(). Can only be used in combination with your own command.
-
-
Method Details
-
byJobDefinitionId
Description copied from interface:UpdateJobDefinitionSuspensionStateSelectBuilderSelects the job definition with the given id.- Specified by:
byJobDefinitionIdin interfaceUpdateJobDefinitionSuspensionStateSelectBuilder- Parameters:
jobDefinitionId- id of the job definition- Returns:
- the builder
-
byProcessDefinitionId
public UpdateJobDefinitionSuspensionStateBuilderImpl byProcessDefinitionId(String processDefinitionId) Description copied from interface:UpdateJobDefinitionSuspensionStateSelectBuilderSelects the job definitions of the process definition with the given id.- Specified by:
byProcessDefinitionIdin interfaceUpdateJobDefinitionSuspensionStateSelectBuilder- Parameters:
processDefinitionId- id of the process definition- Returns:
- the builder
-
byProcessDefinitionKey
public UpdateJobDefinitionSuspensionStateBuilderImpl byProcessDefinitionKey(String processDefinitionKey) Description copied from interface:UpdateJobDefinitionSuspensionStateSelectBuilderSelects the job definitions of the process definitions with the given key.- Specified by:
byProcessDefinitionKeyin interfaceUpdateJobDefinitionSuspensionStateSelectBuilder- Parameters:
processDefinitionKey- key of the process definition- Returns:
- the builder
-
processDefinitionWithoutTenantId
Description copied from interface:UpdateJobDefinitionSuspensionStateTenantBuilderSpecify that the process definition belongs to no tenant.- Specified by:
processDefinitionWithoutTenantIdin interfaceUpdateJobDefinitionSuspensionStateTenantBuilder- Returns:
- the builder
-
processDefinitionTenantId
Description copied from interface:UpdateJobDefinitionSuspensionStateTenantBuilderSpecify the id of the tenant the process definition belongs to.- Specified by:
processDefinitionTenantIdin interfaceUpdateJobDefinitionSuspensionStateTenantBuilder- Parameters:
tenantId- the id of the tenant- Returns:
- the builder
-
includeJobs
Description copied from interface:UpdateJobDefinitionSuspensionStateBuilderSpecify if the suspension states of the jobs of the provided job definitions should also be updated. Default isfalse.- Specified by:
includeJobsin interfaceUpdateJobDefinitionSuspensionStateBuilder- Parameters:
includeJobs- iftrue, all related jobs will be activated / suspended too.- Returns:
- the builder
-
executionDate
Description copied from interface:UpdateJobDefinitionSuspensionStateBuilderSpecify when the suspension state should be updated. Note that the job executor needs to be active to use this.- Specified by:
executionDatein interfaceUpdateJobDefinitionSuspensionStateBuilder- 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
public void activate()Description copied from interface:UpdateJobDefinitionSuspensionStateBuilderActivates the provided job definitions.- Specified by:
activatein interfaceUpdateJobDefinitionSuspensionStateBuilder
-
suspend
public void suspend()Description copied from interface:UpdateJobDefinitionSuspensionStateBuilderSuspends the provided job definitions. If a job definition is in state suspended, it will be ignored by the job executor.- Specified by:
suspendin interfaceUpdateJobDefinitionSuspensionStateBuilder
-
validateParameters
protected void validateParameters() -
getProcessDefinitionKey
-
getProcessDefinitionId
-
getProcessDefinitionTenantId
-
isProcessDefinitionTenantIdSet
public boolean isProcessDefinitionTenantIdSet() -
getJobDefinitionId
-
isIncludeJobs
public boolean isIncludeJobs() -
getExecutionDate
-