Class UpdateJobSuspensionStateBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.management.UpdateJobSuspensionStateBuilderImpl
-
- All Implemented Interfaces:
UpdateJobSuspensionStateBuilder
,UpdateJobSuspensionStateSelectBuilder
,UpdateJobSuspensionStateTenantBuilder
public class UpdateJobSuspensionStateBuilderImpl extends java.lang.Object implements UpdateJobSuspensionStateBuilder, UpdateJobSuspensionStateSelectBuilder, UpdateJobSuspensionStateTenantBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected boolean
isProcessDefinitionTenantIdSet
protected java.lang.String
jobDefinitionId
protected java.lang.String
jobId
protected java.lang.String
processDefinitionId
protected java.lang.String
processDefinitionKey
protected java.lang.String
processDefinitionTenantId
protected java.lang.String
processInstanceId
-
Constructor Summary
Constructors Constructor Description UpdateJobSuspensionStateBuilderImpl()
Creates a builder without CommandExecutor which can not be used to update the suspension state viaactivate()
orsuspend()
.UpdateJobSuspensionStateBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
Activates the provided jobs.UpdateJobSuspensionStateBuilderImpl
byJobDefinitionId(java.lang.String jobDefinitionId)
Selects the jobs of the job definition with the given id.UpdateJobSuspensionStateBuilderImpl
byJobId(java.lang.String jobId)
Selects the job with the given id.UpdateJobSuspensionStateBuilderImpl
byProcessDefinitionId(java.lang.String processDefinitionId)
Selects the jobs of the process definition with the given id.UpdateJobSuspensionStateBuilderImpl
byProcessDefinitionKey(java.lang.String processDefinitionKey)
Selects the jobs of the process definitions with the given key.UpdateJobSuspensionStateBuilderImpl
byProcessInstanceId(java.lang.String processInstanceId)
Selects the jobs of the process instance with the given id.java.lang.String
getJobDefinitionId()
java.lang.String
getJobId()
java.lang.String
getProcessDefinitionId()
java.lang.String
getProcessDefinitionKey()
java.lang.String
getProcessDefinitionTenantId()
java.lang.String
getProcessInstanceId()
boolean
isProcessDefinitionTenantIdSet()
UpdateJobSuspensionStateBuilderImpl
processDefinitionTenantId(java.lang.String tenantId)
Specify the id of the tenant the process definition belongs to.UpdateJobSuspensionStateBuilderImpl
processDefinitionWithoutTenantId()
Specify that the process definition belongs to no tenant.void
suspend()
Suspends the provided jobs.protected void
validateParameters()
-
-
-
Field Detail
-
commandExecutor
protected final CommandExecutor commandExecutor
-
jobId
protected java.lang.String jobId
-
jobDefinitionId
protected java.lang.String jobDefinitionId
-
processInstanceId
protected java.lang.String processInstanceId
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionTenantId
protected java.lang.String processDefinitionTenantId
-
isProcessDefinitionTenantIdSet
protected boolean isProcessDefinitionTenantIdSet
-
-
Constructor Detail
-
UpdateJobSuspensionStateBuilderImpl
public UpdateJobSuspensionStateBuilderImpl(CommandExecutor commandExecutor)
-
UpdateJobSuspensionStateBuilderImpl
public 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 Detail
-
byJobId
public UpdateJobSuspensionStateBuilderImpl byJobId(java.lang.String jobId)
Description copied from interface:UpdateJobSuspensionStateSelectBuilder
Selects the job with the given id.- Specified by:
byJobId
in interfaceUpdateJobSuspensionStateSelectBuilder
- Parameters:
jobId
- id of the job- Returns:
- the builder
-
byJobDefinitionId
public UpdateJobSuspensionStateBuilderImpl byJobDefinitionId(java.lang.String jobDefinitionId)
Description copied from interface:UpdateJobSuspensionStateSelectBuilder
Selects the jobs of the job definition with the given id.- Specified by:
byJobDefinitionId
in interfaceUpdateJobSuspensionStateSelectBuilder
- Parameters:
jobDefinitionId
- id of the job definition- Returns:
- the builder
-
byProcessInstanceId
public UpdateJobSuspensionStateBuilderImpl byProcessInstanceId(java.lang.String processInstanceId)
Description copied from interface:UpdateJobSuspensionStateSelectBuilder
Selects the jobs of the process instance with the given id.- Specified by:
byProcessInstanceId
in interfaceUpdateJobSuspensionStateSelectBuilder
- Parameters:
processInstanceId
- id of the process instance- Returns:
- the builder
-
byProcessDefinitionId
public UpdateJobSuspensionStateBuilderImpl byProcessDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:UpdateJobSuspensionStateSelectBuilder
Selects the jobs of the process definition with the given id.- Specified by:
byProcessDefinitionId
in interfaceUpdateJobSuspensionStateSelectBuilder
- Parameters:
processDefinitionId
- id of the process definition- Returns:
- the builder
-
byProcessDefinitionKey
public UpdateJobSuspensionStateBuilderImpl byProcessDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:UpdateJobSuspensionStateSelectBuilder
Selects the jobs of the process definitions with the given key.- Specified by:
byProcessDefinitionKey
in interfaceUpdateJobSuspensionStateSelectBuilder
- Parameters:
processDefinitionKey
- key of the process definition- Returns:
- the builder
-
processDefinitionWithoutTenantId
public UpdateJobSuspensionStateBuilderImpl processDefinitionWithoutTenantId()
Description copied from interface:UpdateJobSuspensionStateTenantBuilder
Specify that the process definition belongs to no tenant.- Specified by:
processDefinitionWithoutTenantId
in interfaceUpdateJobSuspensionStateTenantBuilder
- Returns:
- the builder
-
processDefinitionTenantId
public UpdateJobSuspensionStateBuilderImpl processDefinitionTenantId(java.lang.String tenantId)
Description copied from interface:UpdateJobSuspensionStateTenantBuilder
Specify the id of the tenant the process definition belongs to.- Specified by:
processDefinitionTenantId
in interfaceUpdateJobSuspensionStateTenantBuilder
- Parameters:
tenantId
- the id of the tenant- Returns:
- the builder
-
activate
public void activate()
Description copied from interface:UpdateJobSuspensionStateBuilder
Activates the provided jobs.- Specified by:
activate
in interfaceUpdateJobSuspensionStateBuilder
-
suspend
public void suspend()
Description copied from interface:UpdateJobSuspensionStateBuilder
Suspends the provided jobs. If a job is in state suspended, it will not be executed by the job executor.- Specified by:
suspend
in interfaceUpdateJobSuspensionStateBuilder
-
validateParameters
protected void validateParameters()
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getProcessDefinitionTenantId
public java.lang.String getProcessDefinitionTenantId()
-
isProcessDefinitionTenantIdSet
public boolean isProcessDefinitionTenantIdSet()
-
getJobId
public java.lang.String getJobId()
-
getJobDefinitionId
public java.lang.String getJobDefinitionId()
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
-