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 Stringprotected RuntimeServiceImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidStart 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:ChangeActivityStateBuilderSet the id of the process instance- Specified by:
processInstanceIdin interfaceChangeActivityStateBuilder
-
moveExecutionToActivityId
Description copied from interface:ChangeActivityStateBuilderSet the id of the execution for which the activity should be changed- Specified by:
moveExecutionToActivityIdin 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:ChangeActivityStateBuilderSet 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:
moveExecutionsToSingleActivityIdin interfaceChangeActivityStateBuilder
-
moveExecutionsToSingleActivityId
-
moveSingleExecutionToActivityIds
public ChangeActivityStateBuilder moveSingleExecutionToActivityIds(String executionId, List<String> activityIds) Description copied from interface:ChangeActivityStateBuilderSet 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:
moveSingleExecutionToActivityIdsin interfaceChangeActivityStateBuilder
-
moveSingleExecutionToActivityIds
-
moveActivityIdTo
Description copied from interface:ChangeActivityStateBuilderMoves the execution with the current activity id to the provided new activity id- Specified by:
moveActivityIdToin 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:ChangeActivityStateBuilderSet 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:
moveActivityIdsToSingleActivityIdin interfaceChangeActivityStateBuilder
-
moveActivityIdsToSingleActivityId
-
moveSingleActivityIdToActivityIds
public ChangeActivityStateBuilder moveSingleActivityIdToActivityIds(String currentActivityId, List<String> newActivityIds) Description copied from interface:ChangeActivityStateBuilderSet 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:
moveSingleActivityIdToActivityIdsin interfaceChangeActivityStateBuilder
-
moveSingleActivityIdToActivityIds
-
moveActivityIdToParentActivityId
public ChangeActivityStateBuilder moveActivityIdToParentActivityId(String currentActivityId, String newActivityId) Description copied from interface:ChangeActivityStateBuilderMoves 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:
moveActivityIdToParentActivityIdin 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:ChangeActivityStateBuilderMoves 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:
moveActivityIdToSubProcessInstanceActivityIdin interfaceChangeActivityStateBuilder
-
moveActivityIdToSubProcessInstanceActivityId
public ChangeActivityStateBuilder moveActivityIdToSubProcessInstanceActivityId(String currentActivityId, String newActivityId, String callActivityId, Integer subProcessDefinitionVersion) Description copied from interface:ChangeActivityStateBuilderMoves 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:
moveActivityIdToSubProcessInstanceActivityIdin interfaceChangeActivityStateBuilder
-
moveActivityIdToSubProcessInstanceActivityId
-
moveActivityIdsToSubProcessInstanceActivityId
-
moveSingleActivityIdToSubProcessInstanceActivityIds
-
enableEventSubProcessStartEvent
public ChangeActivityStateBuilder enableEventSubProcessStartEvent(String eventSubProcessStartEventId) Description copied from interface:ChangeActivityStateBuilderEnables a new start event in an event sub process.- Specified by:
enableEventSubProcessStartEventin interfaceChangeActivityStateBuilder
-
processVariable
public ChangeActivityStateBuilder processVariable(String processVariableName, Object processVariableValue) Description copied from interface:ChangeActivityStateBuilderSets a process scope variable- Specified by:
processVariablein interfaceChangeActivityStateBuilder
-
processVariables
Description copied from interface:ChangeActivityStateBuilderSets multiple process scope variables- Specified by:
processVariablesin interfaceChangeActivityStateBuilder
-
localVariable
public ChangeActivityStateBuilder localVariable(String startActivityId, String localVariableName, Object localVariableValue) Description copied from interface:ChangeActivityStateBuilderSets a local scope variable for a start activity id- Specified by:
localVariablein interfaceChangeActivityStateBuilder
-
localVariables
public ChangeActivityStateBuilder localVariables(String startActivityId, Map<String, Object> localVariables) Description copied from interface:ChangeActivityStateBuilderSets multiple local scope variables for a start activity id- Specified by:
localVariablesin interfaceChangeActivityStateBuilder
-
changeState
public void changeState()Description copied from interface:ChangeActivityStateBuilderStart the process instance- Specified by:
changeStatein interfaceChangeActivityStateBuilder
-
getProcessInstanceId
-
getMoveExecutionIdList
-
getMoveActivityIdList
-
getEnableActivityIdList
-
getProcessInstanceVariables
-
getLocalVariables
-