Class UpdateProcessInstancesSuspensionStateBuilderImpl
- All Implemented Interfaces:
- UpdateProcessInstancesRequest,- UpdateProcessInstancesSuspensionStateBuilder,- UpdateProcessInstanceSuspensionStateBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected CommandExecutorprotected HistoricProcessInstanceQueryprotected Stringprotected ProcessInstanceQuery
- 
Constructor SummaryConstructorsConstructorDescriptionUpdateProcessInstancesSuspensionStateBuilderImpl(List<String> processInstanceIds) UpdateProcessInstancesSuspensionStateBuilderImpl(CommandExecutor commandExecutor) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidactivate()Activates the provided process instances.Activates the provided process instances asynchronously.byHistoricProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery) Selects a list of process instances with the given a historical process instance query.byProcessInstanceIds(String... processInstanceIds) Selects a list of process instances with the given list of ids.byProcessInstanceIds(List<String> processInstanceIds) Selects a list of process instances with the given list of ids.byProcessInstanceQuery(ProcessInstanceQuery processInstanceQuery) Selects a list of process instances with the given a process instance query.voidsuspend()Suspends the provided process instances.Suspends the provided process instances asynchronously.
- 
Field Details- 
processInstanceIds
- 
processInstanceQuery
- 
historicProcessInstanceQuery
- 
commandExecutor
- 
processDefinitionId
 
- 
- 
Constructor Details- 
UpdateProcessInstancesSuspensionStateBuilderImpl
- 
UpdateProcessInstancesSuspensionStateBuilderImpl
 
- 
- 
Method Details- 
byProcessInstanceIdspublic UpdateProcessInstancesSuspensionStateBuilder byProcessInstanceIds(List<String> processInstanceIds) Description copied from interface:UpdateProcessInstancesRequestSelects a list of process instances with the given list of ids.- Specified by:
- byProcessInstanceIdsin interface- UpdateProcessInstancesRequest
- Parameters:
- processInstanceIds- list of ids of the process instances
- Returns:
- the builder
 
- 
byProcessInstanceIdspublic UpdateProcessInstancesSuspensionStateBuilder byProcessInstanceIds(String... processInstanceIds) Description copied from interface:UpdateProcessInstancesRequestSelects a list of process instances with the given list of ids.- Specified by:
- byProcessInstanceIdsin interface- UpdateProcessInstancesRequest
- Parameters:
- processInstanceIds- list of ids of the process instances
- Returns:
- the builder
 
- 
byProcessInstanceQuerypublic UpdateProcessInstancesSuspensionStateBuilder byProcessInstanceQuery(ProcessInstanceQuery processInstanceQuery) Description copied from interface:UpdateProcessInstancesRequestSelects a list of process instances with the given a process instance query.- Specified by:
- byProcessInstanceQueryin interface- UpdateProcessInstancesRequest
- Parameters:
- processInstanceQuery- process instance query that discribes a list of the process instances
- Returns:
- the builder
 
- 
byHistoricProcessInstanceQuerypublic UpdateProcessInstancesSuspensionStateBuilder byHistoricProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery) Description copied from interface:UpdateProcessInstancesRequestSelects a list of process instances with the given a historical process instance query.- Specified by:
- byHistoricProcessInstanceQueryin interface- UpdateProcessInstancesRequest
- Parameters:
- historicProcessInstanceQuery- historical process instance query that discribes a list of the process instances
- Returns:
- the builder
 
- 
suspendpublic void suspend()Description copied from interface:UpdateProcessInstanceSuspensionStateBuilderSuspends 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:
- suspendin interface- UpdateProcessInstanceSuspensionStateBuilder
 
- 
activatepublic void activate()Description copied from interface:UpdateProcessInstanceSuspensionStateBuilderActivates 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:
- activatein interface- UpdateProcessInstanceSuspensionStateBuilder
 
- 
suspendAsyncDescription copied from interface:UpdateProcessInstancesSuspensionStateBuilderSuspends 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:
- suspendAsyncin interface- UpdateProcessInstancesSuspensionStateBuilder
 
- 
activateAsyncDescription copied from interface:UpdateProcessInstancesSuspensionStateBuilderActivates 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:
- activateAsyncin interface- UpdateProcessInstancesSuspensionStateBuilder
 
- 
getProcessInstanceIds
- 
getProcessInstanceQuery
- 
getHistoricProcessInstanceQuery
 
-