public class UpdateProcessInstanceSuspensionStateBuilderImpl extends Object implements UpdateProcessInstanceSuspensionStateBuilder, UpdateProcessInstanceSuspensionStateSelectBuilder, UpdateProcessInstanceSuspensionStateTenantBuilder
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected boolean |
isProcessDefinitionTenantIdSet |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected String |
processDefinitionTenantId |
protected String |
processInstanceId |
Constructor and Description |
---|
UpdateProcessInstanceSuspensionStateBuilderImpl()
Creates a builder without CommandExecutor which can not be used to update
the suspension state via
activate() or suspend() . |
UpdateProcessInstanceSuspensionStateBuilderImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates the provided process instances.
|
UpdateProcessInstancesSuspensionStateBuilder |
byHistoricProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
Selects a list of process instances with the given a historical process instance query.
|
UpdateProcessInstanceSuspensionStateBuilderImpl |
byProcessDefinitionId(String processDefinitionId)
Selects the instances of the process definition with the given id.
|
UpdateProcessInstanceSuspensionStateBuilderImpl |
byProcessDefinitionKey(String processDefinitionKey)
Selects the instances of the process definitions with the given key.
|
UpdateProcessInstanceSuspensionStateBuilderImpl |
byProcessInstanceId(String processInstanceId)
Selects the process instance with the given id.
|
UpdateProcessInstancesSuspensionStateBuilder |
byProcessInstanceIds(List<String> processInstanceIds)
Selects a list of process instances with the given list of ids.
|
UpdateProcessInstancesSuspensionStateBuilder |
byProcessInstanceIds(String... processInstanceIds)
Selects a list of process instances with the given list of ids.
|
UpdateProcessInstancesSuspensionStateBuilder |
byProcessInstanceQuery(ProcessInstanceQuery processInstanceQuery)
Selects a list of process instances with the given a process instance query.
|
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String |
getProcessDefinitionTenantId() |
String |
getProcessInstanceId() |
boolean |
isProcessDefinitionTenantIdSet() |
UpdateProcessInstanceSuspensionStateBuilderImpl |
processDefinitionTenantId(String tenantId)
Specify the id of the tenant the process definition belongs to.
|
UpdateProcessInstanceSuspensionStateBuilderImpl |
processDefinitionWithoutTenantId()
Specify that the process definition belongs to no tenant.
|
void |
suspend()
Suspends the provided process instances.
|
protected void |
validateParameters() |
protected final CommandExecutor commandExecutor
protected String processInstanceId
protected String processDefinitionKey
protected String processDefinitionId
protected String processDefinitionTenantId
protected boolean isProcessDefinitionTenantIdSet
public UpdateProcessInstanceSuspensionStateBuilderImpl(CommandExecutor commandExecutor)
public UpdateProcessInstanceSuspensionStateBuilderImpl()
activate()
or suspend()
. Can be
used in combination with your own command.public UpdateProcessInstancesSuspensionStateBuilder byProcessInstanceIds(List<String> processInstanceIds)
UpdateProcessInstancesRequest
byProcessInstanceIds
in interface UpdateProcessInstancesRequest
processInstanceIds
- list of ids of the process instancespublic UpdateProcessInstancesSuspensionStateBuilder byProcessInstanceIds(String... processInstanceIds)
UpdateProcessInstancesRequest
byProcessInstanceIds
in interface UpdateProcessInstancesRequest
processInstanceIds
- list of ids of the process instancespublic UpdateProcessInstancesSuspensionStateBuilder byProcessInstanceQuery(ProcessInstanceQuery processInstanceQuery)
UpdateProcessInstancesRequest
byProcessInstanceQuery
in interface UpdateProcessInstancesRequest
processInstanceQuery
- process instance query that discribes a list of the process instancespublic UpdateProcessInstancesSuspensionStateBuilder byHistoricProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
UpdateProcessInstancesRequest
byHistoricProcessInstanceQuery
in interface UpdateProcessInstancesRequest
historicProcessInstanceQuery
- historical process instance query that discribes a list of the process instancespublic UpdateProcessInstanceSuspensionStateBuilderImpl byProcessInstanceId(String processInstanceId)
UpdateProcessInstanceSuspensionStateSelectBuilder
byProcessInstanceId
in interface UpdateProcessInstanceSuspensionStateSelectBuilder
processInstanceId
- id of the process instancepublic UpdateProcessInstanceSuspensionStateBuilderImpl byProcessDefinitionId(String processDefinitionId)
UpdateProcessInstanceSuspensionStateSelectBuilder
byProcessDefinitionId
in interface UpdateProcessInstanceSuspensionStateSelectBuilder
processDefinitionId
- id of the process definitionpublic UpdateProcessInstanceSuspensionStateBuilderImpl byProcessDefinitionKey(String processDefinitionKey)
UpdateProcessInstanceSuspensionStateSelectBuilder
byProcessDefinitionKey
in interface UpdateProcessInstanceSuspensionStateSelectBuilder
processDefinitionKey
- key of the process definitionpublic UpdateProcessInstanceSuspensionStateBuilderImpl processDefinitionWithoutTenantId()
UpdateProcessInstanceSuspensionStateTenantBuilder
processDefinitionWithoutTenantId
in interface UpdateProcessInstanceSuspensionStateTenantBuilder
public UpdateProcessInstanceSuspensionStateBuilderImpl processDefinitionTenantId(String tenantId)
UpdateProcessInstanceSuspensionStateTenantBuilder
processDefinitionTenantId
in interface UpdateProcessInstanceSuspensionStateTenantBuilder
tenantId
- the id of the tenantpublic void activate()
UpdateProcessInstanceSuspensionStateBuilder
Activates the provided process instances.
If you have a process instance hierarchy, activating one process instance from the hierarchy will not activate other process instances from that hierarchy.
activate
in interface UpdateProcessInstanceSuspensionStateBuilder
public void suspend()
UpdateProcessInstanceSuspensionStateBuilder
Suspends the provided process instances. This means that the execution is stopped, so the token state will not change. However, actions that do not change token state, like setting/removing variables, etc. will succeed.
Tasks belonging to the suspended process instance will also be suspended. This means that any actions influencing the tasks' lifecycles will fail, such as
If a process instance is in state suspended, the engine will also not execute jobs (timers, messages) associated with this instance.
If you have a process instance hierarchy, suspending one process instance from the hierarchy will not suspend other process instances from that hierarchy.
suspend
in interface UpdateProcessInstanceSuspensionStateBuilder
protected void validateParameters()
public String getProcessDefinitionKey()
public String getProcessDefinitionId()
public String getProcessDefinitionTenantId()
public boolean isProcessDefinitionTenantIdSet()
public String getProcessInstanceId()
Copyright © 2021. All rights reserved.