Class UpdateProcessInstanceSuspensionStateBuilderImpl
- All Implemented Interfaces:
UpdateProcessInstancesRequest
,UpdateProcessInstanceSuspensionStateBuilder
,UpdateProcessInstanceSuspensionStateSelectBuilder
,UpdateProcessInstanceSuspensionStateTenantBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CommandExecutor
protected boolean
protected String
protected String
protected String
protected String
-
Constructor Summary
ConstructorDescriptionCreates a builder without CommandExecutor which can not be used to update the suspension state viaactivate()
orsuspend()
.UpdateProcessInstanceSuspensionStateBuilderImpl
(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Activates the provided process instances.byHistoricProcessInstanceQuery
(HistoricProcessInstanceQuery historicProcessInstanceQuery) Selects a list of process instances with the given a historical process instance query.byProcessDefinitionId
(String processDefinitionId) Selects the instances of the process definition with the given id.byProcessDefinitionKey
(String processDefinitionKey) Selects the instances of the process definitions with the given key.byProcessInstanceId
(String processInstanceId) Selects the process instance with the given id.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.boolean
processDefinitionTenantId
(String tenantId) Specify the id of the tenant the process definition belongs to.Specify that the process definition belongs to no tenant.void
suspend()
Suspends the provided process instances.protected void
-
Field Details
-
commandExecutor
-
processInstanceId
-
processDefinitionKey
-
processDefinitionId
-
processDefinitionTenantId
-
isProcessDefinitionTenantIdSet
protected boolean isProcessDefinitionTenantIdSet
-
-
Constructor Details
-
UpdateProcessInstanceSuspensionStateBuilderImpl
-
UpdateProcessInstanceSuspensionStateBuilderImpl
public UpdateProcessInstanceSuspensionStateBuilderImpl()Creates a builder without CommandExecutor which can not be used to update the suspension state viaactivate()
orsuspend()
. Can be used in combination with your own command.
-
-
Method Details
-
byProcessInstanceIds
public UpdateProcessInstancesSuspensionStateBuilder byProcessInstanceIds(List<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(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
-
byProcessInstanceId
public UpdateProcessInstanceSuspensionStateBuilderImpl byProcessInstanceId(String processInstanceId) Description copied from interface:UpdateProcessInstanceSuspensionStateSelectBuilder
Selects the process instance with the given id.- Specified by:
byProcessInstanceId
in interfaceUpdateProcessInstanceSuspensionStateSelectBuilder
- Parameters:
processInstanceId
- id of the process instance- Returns:
- the builder
-
byProcessDefinitionId
public UpdateProcessInstanceSuspensionStateBuilderImpl byProcessDefinitionId(String processDefinitionId) Description copied from interface:UpdateProcessInstanceSuspensionStateSelectBuilder
Selects the instances of the process definition with the given id.- Specified by:
byProcessDefinitionId
in interfaceUpdateProcessInstanceSuspensionStateSelectBuilder
- Parameters:
processDefinitionId
- id of the process definition- Returns:
- the builder
-
byProcessDefinitionKey
public UpdateProcessInstanceSuspensionStateBuilderImpl byProcessDefinitionKey(String processDefinitionKey) Description copied from interface:UpdateProcessInstanceSuspensionStateSelectBuilder
Selects the instances of the process definitions with the given key.- Specified by:
byProcessDefinitionKey
in interfaceUpdateProcessInstanceSuspensionStateSelectBuilder
- Parameters:
processDefinitionKey
- key of the process definition- Returns:
- the builder
-
processDefinitionWithoutTenantId
Description copied from interface:UpdateProcessInstanceSuspensionStateTenantBuilder
Specify that the process definition belongs to no tenant.- Specified by:
processDefinitionWithoutTenantId
in interfaceUpdateProcessInstanceSuspensionStateTenantBuilder
- Returns:
- the builder
-
processDefinitionTenantId
Description copied from interface:UpdateProcessInstanceSuspensionStateTenantBuilder
Specify the id of the tenant the process definition belongs to.- Specified by:
processDefinitionTenantId
in interfaceUpdateProcessInstanceSuspensionStateTenantBuilder
- Parameters:
tenantId
- the id of the tenant- Returns:
- the builder
-
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
-
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
-
validateParameters
protected void validateParameters() -
getProcessDefinitionKey
-
getProcessDefinitionId
-
getProcessDefinitionTenantId
-
isProcessDefinitionTenantIdSet
public boolean isProcessDefinitionTenantIdSet() -
getProcessInstanceId
-