Class UpdateProcessInstancesSuspensionStateBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.UpdateProcessInstancesSuspensionStateBuilderImpl
-
- All Implemented Interfaces:
UpdateProcessInstancesRequest
,UpdateProcessInstancesSuspensionStateBuilder
,UpdateProcessInstanceSuspensionStateBuilder
public class UpdateProcessInstancesSuspensionStateBuilderImpl extends java.lang.Object implements UpdateProcessInstancesSuspensionStateBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected HistoricProcessInstanceQuery
historicProcessInstanceQuery
protected java.lang.String
processDefinitionId
protected java.util.List<java.lang.String>
processInstanceIds
protected ProcessInstanceQuery
processInstanceQuery
-
Constructor Summary
Constructors Constructor Description UpdateProcessInstancesSuspensionStateBuilderImpl(java.util.List<java.lang.String> processInstanceIds)
UpdateProcessInstancesSuspensionStateBuilderImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(java.lang.String... processInstanceIds)
Selects a list of process instances with the given list of ids.UpdateProcessInstancesSuspensionStateBuilder
byProcessInstanceIds(java.util.List<java.lang.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()
java.util.List<java.lang.String>
getProcessInstanceIds()
ProcessInstanceQuery
getProcessInstanceQuery()
void
suspend()
Suspends the provided process instances.Batch
suspendAsync()
Suspends the provided process instances asynchronously.
-
-
-
Field Detail
-
processInstanceIds
protected java.util.List<java.lang.String> processInstanceIds
-
processInstanceQuery
protected ProcessInstanceQuery processInstanceQuery
-
historicProcessInstanceQuery
protected HistoricProcessInstanceQuery historicProcessInstanceQuery
-
commandExecutor
protected CommandExecutor commandExecutor
-
processDefinitionId
protected java.lang.String processDefinitionId
-
-
Constructor Detail
-
UpdateProcessInstancesSuspensionStateBuilderImpl
public UpdateProcessInstancesSuspensionStateBuilderImpl(CommandExecutor commandExecutor)
-
UpdateProcessInstancesSuspensionStateBuilderImpl
public UpdateProcessInstancesSuspensionStateBuilderImpl(java.util.List<java.lang.String> processInstanceIds)
-
-
Method Detail
-
byProcessInstanceIds
public UpdateProcessInstancesSuspensionStateBuilder byProcessInstanceIds(java.util.List<java.lang.String> processInstanceIds)
Description copied from interface:UpdateProcessInstancesRequest
Selects a list of process instances with the given list of ids.- Specified by:
byProcessInstanceIds
in interfaceUpdateProcessInstancesRequest
- Parameters:
processInstanceIds
- list of ids of the process instances- Returns:
- the builder
-
byProcessInstanceIds
public UpdateProcessInstancesSuspensionStateBuilder byProcessInstanceIds(java.lang.String... processInstanceIds)
Description copied from interface:UpdateProcessInstancesRequest
Selects a list of process instances with the given list of ids.- Specified by:
byProcessInstanceIds
in interfaceUpdateProcessInstancesRequest
- Parameters:
processInstanceIds
- list of ids of the process instances- Returns:
- the builder
-
byProcessInstanceQuery
public UpdateProcessInstancesSuspensionStateBuilder byProcessInstanceQuery(ProcessInstanceQuery processInstanceQuery)
Description copied from interface:UpdateProcessInstancesRequest
Selects a list of process instances with the given a process instance query.- Specified by:
byProcessInstanceQuery
in interfaceUpdateProcessInstancesRequest
- Parameters:
processInstanceQuery
- process instance query that discribes a list of the process instances- Returns:
- the builder
-
byHistoricProcessInstanceQuery
public UpdateProcessInstancesSuspensionStateBuilder byHistoricProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
Description copied from interface:UpdateProcessInstancesRequest
Selects a list of process instances with the given a historical process instance query.- Specified by:
byHistoricProcessInstanceQuery
in interfaceUpdateProcessInstancesRequest
- Parameters:
historicProcessInstanceQuery
- historical process instance query that discribes a list of the process instances- Returns:
- the builder
-
suspend
public void suspend()
Description copied from interface: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
- claiming
- completing
- delegation
- changes in task assignees, owners, etc.
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.
- Specified by:
suspend
in interfaceUpdateProcessInstanceSuspensionStateBuilder
-
activate
public void activate()
Description copied from interface: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.
- Specified by:
activate
in interfaceUpdateProcessInstanceSuspensionStateBuilder
-
suspendAsync
public Batch suspendAsync()
Description copied from interface: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
- claiming
- completing
- delegation
- changes in task assignees, owners, etc.
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.
- Specified by:
suspendAsync
in interfaceUpdateProcessInstancesSuspensionStateBuilder
-
activateAsync
public Batch activateAsync()
Description copied from interface: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.
- Specified by:
activateAsync
in interfaceUpdateProcessInstancesSuspensionStateBuilder
-
getProcessInstanceIds
public java.util.List<java.lang.String> getProcessInstanceIds()
-
getProcessInstanceQuery
public ProcessInstanceQuery getProcessInstanceQuery()
-
getHistoricProcessInstanceQuery
public HistoricProcessInstanceQuery getHistoricProcessInstanceQuery()
-
-