Package org.flowable.engine.impl.runtime
Class ChangeActivityStateBuilderImpl
java.lang.Object
org.flowable.engine.impl.runtime.ChangeActivityStateBuilderImpl
- All Implemented Interfaces:
ChangeActivityStateBuilder
- Author:
- Tijs Rademakers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<EnableActivityIdContainer>
protected List<MoveActivityIdContainer>
protected List<MoveExecutionIdContainer>
protected String
protected RuntimeServiceImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Start the process instanceenableEventSubProcessStartEvent
(String eventSubProcessStartEventId) Enables a new start event in an event sub process.localVariable
(String startActivityId, String localVariableName, Object localVariableValue) Sets a local scope variable for a start activity idlocalVariables
(String startActivityId, Map<String, Object> localVariables) Sets multiple local scope variables for a start activity idmoveActivityIdsToParentActivityId
(List<String> currentActivityIds, String newActivityId, String newAssigneeId, String newOwnerId) moveActivityIdsToSingleActivityId
(List<String> activityIds, String activityId) Set the activity ids that should be changed to a single activity id.moveActivityIdsToSingleActivityId
(List<String> activityIds, String activityId, String newAssigneeId, String newOwnerId) moveActivityIdsToSubProcessInstanceActivityId
(List<String> activityIds, String newActivityId, String callActivityId, Integer callActivitySubProcessVersion, String newAssigneeId, String newOwnerId) moveActivityIdTo
(String currentActivityId, String newActivityId) Moves the execution with the current activity id to the provided new activity idmoveActivityIdTo
(String currentActivityId, String newActivityId, String newAssigneeId, String newOwnerId) moveActivityIdToParentActivityId
(String currentActivityId, String newActivityId) Moves the execution with the current activity id to an activity id in the parent process instance.moveActivityIdToParentActivityId
(String currentActivityId, String newActivityId, String newAssigneeId, String newOwnerId) moveActivityIdToSubProcessInstanceActivityId
(String currentActivityId, String newActivityId, String callActivityId) Moves the execution with the current activity id to an activity id in a new sub process instance for the provided call activity id.moveActivityIdToSubProcessInstanceActivityId
(String currentActivityId, String newActivityId, String callActivityId, Integer subProcessDefinitionVersion) Moves the execution with the current activity id to an activity id in a new sub process instance of the specific definition version for the provided call activity id.moveActivityIdToSubProcessInstanceActivityId
(String currentActivityId, String newActivityId, String callActivityId, Integer callActivitySubProcessVersion, String newAssigneeId, String newOwnerId) moveExecutionsToSingleActivityId
(List<String> executionIds, String activityId) Set the ids of the executions which should be changed to a single execution with the provided activity id.moveExecutionsToSingleActivityId
(List<String> executionIds, String activityId, String newAssigneeId, String newOwnerId) moveExecutionToActivityId
(String executionId, String activityId) Set the id of the execution for which the activity should be changedmoveExecutionToActivityId
(String executionId, String activityId, String newAssigneeId, String newOwnerId) moveSingleActivityIdToActivityIds
(String currentActivityId, List<String> newActivityIds) Set the activity id that should be changed to multiple activity ids.moveSingleActivityIdToActivityIds
(String currentActivityId, List<String> newActivityIds, String newAssigneeId, String newOwnerId) moveSingleActivityIdToParentActivityIds
(String currentActivityId, List<String> newActivityIds) moveSingleActivityIdToSubProcessInstanceActivityIds
(String currentActivityId, List<String> newActivityIds, String callActivityId, Integer callActivitySubProcessVersion) moveSingleExecutionToActivityIds
(String executionId, List<String> activityIds) Set the id of an execution which should be changed to multiple executions with the provided activity ids.moveSingleExecutionToActivityIds
(String executionId, List<String> activityIds, String newAssigneeId, String newOwnerId) processInstanceId
(String processInstanceId) Set the id of the process instanceprocessVariable
(String processVariableName, Object processVariableValue) Sets a process scope variableprocessVariables
(Map<String, Object> processVariables) Sets multiple process scope variables
-
Field Details
-
runtimeService
-
processInstanceId
-
moveExecutionIdList
-
moveActivityIdList
-
enableActivityIdList
-
processVariables
-
localVariables
-
-
Constructor Details
-
ChangeActivityStateBuilderImpl
public ChangeActivityStateBuilderImpl() -
ChangeActivityStateBuilderImpl
-
-
Method Details
-
processInstanceId
Description copied from interface:ChangeActivityStateBuilder
Set the id of the process instance- Specified by:
processInstanceId
in interfaceChangeActivityStateBuilder
-
moveExecutionToActivityId
Description copied from interface:ChangeActivityStateBuilder
Set the id of the execution for which the activity should be changed- Specified by:
moveExecutionToActivityId
in interfaceChangeActivityStateBuilder
-
moveExecutionToActivityId
public ChangeActivityStateBuilder moveExecutionToActivityId(String executionId, String activityId, String newAssigneeId, String newOwnerId) -
moveExecutionsToSingleActivityId
public ChangeActivityStateBuilder moveExecutionsToSingleActivityId(List<String> executionIds, String activityId) Description copied from interface:ChangeActivityStateBuilder
Set the ids of the executions which should be changed to a single execution with the provided activity id. This can be used for parallel execution like parallel/inclusive gateways, multiinstance, event sub processes etc.- Specified by:
moveExecutionsToSingleActivityId
in interfaceChangeActivityStateBuilder
-
moveExecutionsToSingleActivityId
-
moveSingleExecutionToActivityIds
public ChangeActivityStateBuilder moveSingleExecutionToActivityIds(String executionId, List<String> activityIds) Description copied from interface:ChangeActivityStateBuilder
Set the id of an execution which should be changed to multiple executions with the provided activity ids. This can be used for parallel execution like parallel/inclusive gateways, multiinstance, event sub processes etc.- Specified by:
moveSingleExecutionToActivityIds
in interfaceChangeActivityStateBuilder
-
moveSingleExecutionToActivityIds
-
moveActivityIdTo
Description copied from interface:ChangeActivityStateBuilder
Moves the execution with the current activity id to the provided new activity id- Specified by:
moveActivityIdTo
in interfaceChangeActivityStateBuilder
-
moveActivityIdTo
public ChangeActivityStateBuilder moveActivityIdTo(String currentActivityId, String newActivityId, String newAssigneeId, String newOwnerId) -
moveActivityIdsToSingleActivityId
public ChangeActivityStateBuilder moveActivityIdsToSingleActivityId(List<String> activityIds, String activityId) Description copied from interface:ChangeActivityStateBuilder
Set the activity ids that should be changed to a single activity id. This can be used for parallel execution like parallel/inclusive gateways, multiinstance, event sub processes etc.- Specified by:
moveActivityIdsToSingleActivityId
in interfaceChangeActivityStateBuilder
-
moveActivityIdsToSingleActivityId
-
moveSingleActivityIdToActivityIds
public ChangeActivityStateBuilder moveSingleActivityIdToActivityIds(String currentActivityId, List<String> newActivityIds) Description copied from interface:ChangeActivityStateBuilder
Set the activity id that should be changed to multiple activity ids. This can be used for parallel execution like parallel/inclusive gateways, multiinstance, event sub processes etc.- Specified by:
moveSingleActivityIdToActivityIds
in interfaceChangeActivityStateBuilder
-
moveSingleActivityIdToActivityIds
-
moveActivityIdToParentActivityId
public ChangeActivityStateBuilder moveActivityIdToParentActivityId(String currentActivityId, String newActivityId) Description copied from interface:ChangeActivityStateBuilder
Moves the execution with the current activity id to an activity id in the parent process instance. The sub process instance will be terminated, so all sub process instance executions need to be moved.- Specified by:
moveActivityIdToParentActivityId
in interfaceChangeActivityStateBuilder
-
moveActivityIdToParentActivityId
public ChangeActivityStateBuilder moveActivityIdToParentActivityId(String currentActivityId, String newActivityId, String newAssigneeId, String newOwnerId) -
moveActivityIdsToParentActivityId
-
moveSingleActivityIdToParentActivityIds
public ChangeActivityStateBuilder moveSingleActivityIdToParentActivityIds(String currentActivityId, List<String> newActivityIds) -
moveActivityIdToSubProcessInstanceActivityId
public ChangeActivityStateBuilder moveActivityIdToSubProcessInstanceActivityId(String currentActivityId, String newActivityId, String callActivityId) Description copied from interface:ChangeActivityStateBuilder
Moves the execution with the current activity id to an activity id in a new sub process instance for the provided call activity id.- Specified by:
moveActivityIdToSubProcessInstanceActivityId
in interfaceChangeActivityStateBuilder
-
moveActivityIdToSubProcessInstanceActivityId
public ChangeActivityStateBuilder moveActivityIdToSubProcessInstanceActivityId(String currentActivityId, String newActivityId, String callActivityId, Integer subProcessDefinitionVersion) Description copied from interface:ChangeActivityStateBuilder
Moves the execution with the current activity id to an activity id in a new sub process instance of the specific definition version for the provided call activity id.- Specified by:
moveActivityIdToSubProcessInstanceActivityId
in interfaceChangeActivityStateBuilder
-
moveActivityIdToSubProcessInstanceActivityId
-
moveActivityIdsToSubProcessInstanceActivityId
-
moveSingleActivityIdToSubProcessInstanceActivityIds
-
enableEventSubProcessStartEvent
public ChangeActivityStateBuilder enableEventSubProcessStartEvent(String eventSubProcessStartEventId) Description copied from interface:ChangeActivityStateBuilder
Enables a new start event in an event sub process.- Specified by:
enableEventSubProcessStartEvent
in interfaceChangeActivityStateBuilder
-
processVariable
public ChangeActivityStateBuilder processVariable(String processVariableName, Object processVariableValue) Description copied from interface:ChangeActivityStateBuilder
Sets a process scope variable- Specified by:
processVariable
in interfaceChangeActivityStateBuilder
-
processVariables
Description copied from interface:ChangeActivityStateBuilder
Sets multiple process scope variables- Specified by:
processVariables
in interfaceChangeActivityStateBuilder
-
localVariable
public ChangeActivityStateBuilder localVariable(String startActivityId, String localVariableName, Object localVariableValue) Description copied from interface:ChangeActivityStateBuilder
Sets a local scope variable for a start activity id- Specified by:
localVariable
in interfaceChangeActivityStateBuilder
-
localVariables
public ChangeActivityStateBuilder localVariables(String startActivityId, Map<String, Object> localVariables) Description copied from interface:ChangeActivityStateBuilder
Sets multiple local scope variables for a start activity id- Specified by:
localVariables
in interfaceChangeActivityStateBuilder
-
changeState
public void changeState()Description copied from interface:ChangeActivityStateBuilder
Start the process instance- Specified by:
changeState
in interfaceChangeActivityStateBuilder
-
getProcessInstanceId
-
getMoveExecutionIdList
-
getMoveActivityIdList
-
getEnableActivityIdList
-
getProcessInstanceVariables
-
getLocalVariables
-