Class UpdateJobSuspensionStateBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.management.UpdateJobSuspensionStateBuilderImpl
- All Implemented Interfaces:
- UpdateJobSuspensionStateBuilder,- UpdateJobSuspensionStateSelectBuilder,- UpdateJobSuspensionStateTenantBuilder
public class UpdateJobSuspensionStateBuilderImpl
extends Object
implements UpdateJobSuspensionStateBuilder, UpdateJobSuspensionStateSelectBuilder, UpdateJobSuspensionStateTenantBuilder
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a builder without CommandExecutor which can not be used to update the suspension state viaactivate()orsuspend().UpdateJobSuspensionStateBuilderImpl(CommandExecutor commandExecutor) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidactivate()Activates the provided jobs.byJobDefinitionId(String jobDefinitionId) Selects the jobs of the job definition with the given id.Selects the job with the given id.byProcessDefinitionId(String processDefinitionId) Selects the jobs of the process definition with the given id.byProcessDefinitionKey(String processDefinitionKey) Selects the jobs of the process definitions with the given key.byProcessInstanceId(String processInstanceId) Selects the jobs of the process instance with the given id.getJobId()booleanprocessDefinitionTenantId(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 jobs.protected void
- 
Field Details- 
commandExecutor
- 
jobId
- 
jobDefinitionId
- 
processInstanceId
- 
processDefinitionKey
- 
processDefinitionId
- 
processDefinitionTenantId
- 
isProcessDefinitionTenantIdSetprotected boolean isProcessDefinitionTenantIdSet
 
- 
- 
Constructor Details- 
UpdateJobSuspensionStateBuilderImpl
- 
UpdateJobSuspensionStateBuilderImplpublic UpdateJobSuspensionStateBuilderImpl()Creates a builder without CommandExecutor which can not be used to update the suspension state viaactivate()orsuspend(). Can be used in combination with your own command.
 
- 
- 
Method Details- 
byJobIdDescription copied from interface:UpdateJobSuspensionStateSelectBuilderSelects the job with the given id.- Specified by:
- byJobIdin interface- UpdateJobSuspensionStateSelectBuilder
- Parameters:
- jobId- id of the job
- Returns:
- the builder
 
- 
byJobDefinitionIdDescription copied from interface:UpdateJobSuspensionStateSelectBuilderSelects the jobs of the job definition with the given id.- Specified by:
- byJobDefinitionIdin interface- UpdateJobSuspensionStateSelectBuilder
- Parameters:
- jobDefinitionId- id of the job definition
- Returns:
- the builder
 
- 
byProcessInstanceIdDescription copied from interface:UpdateJobSuspensionStateSelectBuilderSelects the jobs of the process instance with the given id.- Specified by:
- byProcessInstanceIdin interface- UpdateJobSuspensionStateSelectBuilder
- Parameters:
- processInstanceId- id of the process instance
- Returns:
- the builder
 
- 
byProcessDefinitionIdDescription copied from interface:UpdateJobSuspensionStateSelectBuilderSelects the jobs of the process definition with the given id.- Specified by:
- byProcessDefinitionIdin interface- UpdateJobSuspensionStateSelectBuilder
- Parameters:
- processDefinitionId- id of the process definition
- Returns:
- the builder
 
- 
byProcessDefinitionKeyDescription copied from interface:UpdateJobSuspensionStateSelectBuilderSelects the jobs of the process definitions with the given key.- Specified by:
- byProcessDefinitionKeyin interface- UpdateJobSuspensionStateSelectBuilder
- Parameters:
- processDefinitionKey- key of the process definition
- Returns:
- the builder
 
- 
processDefinitionWithoutTenantIdDescription copied from interface:UpdateJobSuspensionStateTenantBuilderSpecify that the process definition belongs to no tenant.- Specified by:
- processDefinitionWithoutTenantIdin interface- UpdateJobSuspensionStateTenantBuilder
- Returns:
- the builder
 
- 
processDefinitionTenantIdDescription copied from interface:UpdateJobSuspensionStateTenantBuilderSpecify the id of the tenant the process definition belongs to.- Specified by:
- processDefinitionTenantIdin interface- UpdateJobSuspensionStateTenantBuilder
- Parameters:
- tenantId- the id of the tenant
- Returns:
- the builder
 
- 
activatepublic void activate()Description copied from interface:UpdateJobSuspensionStateBuilderActivates the provided jobs.- Specified by:
- activatein interface- UpdateJobSuspensionStateBuilder
 
- 
suspendpublic void suspend()Description copied from interface:UpdateJobSuspensionStateBuilderSuspends the provided jobs. If a job is in state suspended, it will not be executed by the job executor.- Specified by:
- suspendin interface- UpdateJobSuspensionStateBuilder
 
- 
validateParametersprotected void validateParameters()
- 
getProcessDefinitionKey
- 
getProcessDefinitionId
- 
getProcessDefinitionTenantId
- 
isProcessDefinitionTenantIdSetpublic boolean isProcessDefinitionTenantIdSet()
- 
getJobId
- 
getJobDefinitionId
- 
getProcessInstanceId
 
-