public class UpdateJobSuspensionStateBuilderImpl extends Object implements UpdateJobSuspensionStateBuilder, UpdateJobSuspensionStateSelectBuilder, UpdateJobSuspensionStateTenantBuilder
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected boolean |
isProcessDefinitionTenantIdSet |
protected String |
jobDefinitionId |
protected String |
jobId |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected String |
processDefinitionTenantId |
protected String |
processInstanceId |
Constructor and Description |
---|
UpdateJobSuspensionStateBuilderImpl()
Creates a builder without CommandExecutor which can not be used to update
the suspension state via
activate() or suspend() . |
UpdateJobSuspensionStateBuilderImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates the provided jobs.
|
UpdateJobSuspensionStateBuilderImpl |
byJobDefinitionId(String jobDefinitionId)
Selects the jobs of the job definition with the given id.
|
UpdateJobSuspensionStateBuilderImpl |
byJobId(String jobId)
Selects the job with the given id.
|
UpdateJobSuspensionStateBuilderImpl |
byProcessDefinitionId(String processDefinitionId)
Selects the jobs of the process definition with the given id.
|
UpdateJobSuspensionStateBuilderImpl |
byProcessDefinitionKey(String processDefinitionKey)
Selects the jobs of the process definitions with the given key.
|
UpdateJobSuspensionStateBuilderImpl |
byProcessInstanceId(String processInstanceId)
Selects the jobs of the process instance with the given id.
|
String |
getJobDefinitionId() |
String |
getJobId() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String |
getProcessDefinitionTenantId() |
String |
getProcessInstanceId() |
boolean |
isProcessDefinitionTenantIdSet() |
UpdateJobSuspensionStateBuilderImpl |
processDefinitionTenantId(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() |
protected final CommandExecutor commandExecutor
protected String jobId
protected String jobDefinitionId
protected String processInstanceId
protected String processDefinitionKey
protected String processDefinitionId
protected String processDefinitionTenantId
protected boolean isProcessDefinitionTenantIdSet
public UpdateJobSuspensionStateBuilderImpl(CommandExecutor commandExecutor)
public UpdateJobSuspensionStateBuilderImpl()
activate()
or suspend()
. Can be
used in combination with your own command.public UpdateJobSuspensionStateBuilderImpl byJobId(String jobId)
UpdateJobSuspensionStateSelectBuilder
byJobId
in interface UpdateJobSuspensionStateSelectBuilder
jobId
- id of the jobpublic UpdateJobSuspensionStateBuilderImpl byJobDefinitionId(String jobDefinitionId)
UpdateJobSuspensionStateSelectBuilder
byJobDefinitionId
in interface UpdateJobSuspensionStateSelectBuilder
jobDefinitionId
- id of the job definitionpublic UpdateJobSuspensionStateBuilderImpl byProcessInstanceId(String processInstanceId)
UpdateJobSuspensionStateSelectBuilder
byProcessInstanceId
in interface UpdateJobSuspensionStateSelectBuilder
processInstanceId
- id of the process instancepublic UpdateJobSuspensionStateBuilderImpl byProcessDefinitionId(String processDefinitionId)
UpdateJobSuspensionStateSelectBuilder
byProcessDefinitionId
in interface UpdateJobSuspensionStateSelectBuilder
processDefinitionId
- id of the process definitionpublic UpdateJobSuspensionStateBuilderImpl byProcessDefinitionKey(String processDefinitionKey)
UpdateJobSuspensionStateSelectBuilder
byProcessDefinitionKey
in interface UpdateJobSuspensionStateSelectBuilder
processDefinitionKey
- key of the process definitionpublic UpdateJobSuspensionStateBuilderImpl processDefinitionWithoutTenantId()
UpdateJobSuspensionStateTenantBuilder
processDefinitionWithoutTenantId
in interface UpdateJobSuspensionStateTenantBuilder
public UpdateJobSuspensionStateBuilderImpl processDefinitionTenantId(String tenantId)
UpdateJobSuspensionStateTenantBuilder
processDefinitionTenantId
in interface UpdateJobSuspensionStateTenantBuilder
tenantId
- the id of the tenantpublic void activate()
UpdateJobSuspensionStateBuilder
activate
in interface UpdateJobSuspensionStateBuilder
public void suspend()
UpdateJobSuspensionStateBuilder
suspend
in interface UpdateJobSuspensionStateBuilder
protected void validateParameters()
public String getProcessDefinitionKey()
public String getProcessDefinitionId()
public String getProcessDefinitionTenantId()
public boolean isProcessDefinitionTenantIdSet()
public String getJobId()
public String getJobDefinitionId()
public String getProcessInstanceId()
Copyright © 2017. All rights reserved.