public class UpdateProcessInstancesSuspensionStateBuilderImpl extends Object implements UpdateProcessInstancesSuspensionStateBuilder
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected HistoricProcessInstanceQuery |
historicProcessInstanceQuery |
protected String |
processDefinitionId |
protected List<String> |
processInstanceIds |
protected ProcessInstanceQuery |
processInstanceQuery |
Constructor and Description |
---|
UpdateProcessInstancesSuspensionStateBuilderImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates the provided process instances.
|
Batch |
activateAsync()
Activates the provided process instances asynchronously.
|
UpdateProcessInstancesSuspensionStateBuilder |
byHistoricProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
Selects a list of process instances with the given a historical process instance query.
|
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.
|
HistoricProcessInstanceQuery |
getHistoricProcessInstanceQuery() |
List<String> |
getProcessInstanceIds() |
ProcessInstanceQuery |
getProcessInstanceQuery() |
void |
suspend()
Suspends the provided process instances.
|
Batch |
suspendAsync()
Suspends the provided process instances asynchronously.
|
protected ProcessInstanceQuery processInstanceQuery
protected HistoricProcessInstanceQuery historicProcessInstanceQuery
protected CommandExecutor commandExecutor
protected String processDefinitionId
public UpdateProcessInstancesSuspensionStateBuilderImpl(CommandExecutor commandExecutor)
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 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
public 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 Batch suspendAsync()
UpdateProcessInstancesSuspensionStateBuilder
Suspends the provided process instances asynchronously. 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.
suspendAsync
in interface UpdateProcessInstancesSuspensionStateBuilder
public Batch activateAsync()
UpdateProcessInstancesSuspensionStateBuilder
Activates the provided process instances asynchronously.
If you have a process instance hierarchy, activating one process instance from the hierarchy will not activate other process instances from that hierarchy.
activateAsync
in interface UpdateProcessInstancesSuspensionStateBuilder
public ProcessInstanceQuery getProcessInstanceQuery()
public HistoricProcessInstanceQuery getHistoricProcessInstanceQuery()
Copyright © 2022. All rights reserved.