Class ChangePlanItemStateBuilderImpl
java.lang.Object
org.flowable.cmmn.engine.impl.runtime.ChangePlanItemStateBuilderImpl
- All Implemented Interfaces:
ChangePlanItemStateBuilder
- Author:
- Tijs Rademakers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<ActivatePlanItemDefinitionMapping>
protected String
protected Set<ChangePlanItemIdMapping>
protected Set<ChangePlanItemIdWithDefinitionIdMapping>
protected Set<MoveToAvailablePlanItemDefinitionMapping>
protected CmmnRuntimeServiceImpl
protected Set<TerminatePlanItemDefinitionMapping>
protected Set<WaitingForRepetitionPlanItemDefinitionMapping>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivatePlanItemDefinition
(ActivatePlanItemDefinitionMapping planItemDefinitionMapping) Activate a plan item by definition mapping.activatePlanItemDefinitionId
(String planItemDefinitionId) Activate a plan item by definition id.activatePlanItemDefinitionIds
(List<String> planItemDefinitionIds) Activate multiple plan items by definition id.activatePlanItemDefinitions
(List<ActivatePlanItemDefinitionMapping> planItemDefinitionMappings) Activate multiple plan items by definition mapping.addWaitingForRepetitionPlanItemDefinition
(WaitingForRepetitionPlanItemDefinitionMapping planItemDefinitionMapping) Add waiting for repetition to a plan item by definition mapping.addWaitingForRepetitionPlanItemDefinitionId
(String planItemDefinitionId) Add waiting for repetition to a plan item by definition id.addWaitingForRepetitionPlanItemDefinitionIds
(List<String> planItemDefinitionIds) Add multiple waiting for repetitions to a plan item by definition id.caseInstanceId
(String caseInstanceId) Set the id of the case instancecaseVariable
(String caseVariableName, Object caseVariableValue) Set the case variable that should be set as part of the change plan item state action.caseVariables
(Map<String, Object> caseVariables) Set the case variable that should be set as part of the change plan item state action.changePlanItemDefinitionWithNewTargetIds
(String existingPlanItemDefinitionId, String newPlanItemId, String newPlanItemDefinitionId) Add plan item id mapping with definition id.changePlanItemId
(String existingPlanItemId, String newPlanItemId) Add plan item id mapping.changePlanItemIds
(Map<String, String> changePlanItemIdMap) Add plan item id mapping.changePlanItemIdsWithDefinitionId
(Map<String, String> changePlanItemIdWithDefinitionIdMap) Add plan item id mapping with definition id.changePlanItemIdWithDefinitionId
(String existingPlanItemDefinitionId, String newPlanItemDefinitionId) Add plan item id mapping with definition id.void
Changes the case instance statechangeToAvailableStateByPlanItemDefinition
(MoveToAvailablePlanItemDefinitionMapping planItemDefinitionMapping) Set a plan item to available state by definition mapping.changeToAvailableStateByPlanItemDefinitionId
(String planItemDefinitionId) Set a plan item to available state by definition id.changeToAvailableStateByPlanItemDefinitionIds
(List<String> planItemDefinitionIds) Set multiple plan items to available state by definition id.childInstanceTaskVariable
(String planItemDefinitionId, String name, Object value) Set the case variable that should be set as part of the change process or case task state action.childInstanceTaskVariables
(String planItemDefinitionId, Map<String, Object> variables) Set the case variable that should be set as part of the change process or case task state action.removeWaitingForRepetitionPlanItemDefinition
(RemoveWaitingForRepetitionPlanItemDefinitionMapping planItemDefinition) Remove waiting for repetition from a plan item by definition.removeWaitingForRepetitionPlanItemDefinitionId
(String planItemDefinitionId) Remove waiting for repetition from a plan item by definition id.removeWaitingForRepetitionPlanItemDefinitionIds
(List<String> planItemDefinitionIds) Remove multiple waiting for repetitions from a plan item by definition id.terminatePlanItemDefinition
(TerminatePlanItemDefinitionMapping planItemDefinition) Terminate a plan item by definition mapping without terminating another plan item instance.terminatePlanItemDefinitionId
(String planItemDefinitionId) Terminate a plan item by definition id without terminating another plan item instance.terminatePlanItemDefinitionIds
(List<String> planItemDefinitionIds) Terminate multiple plan items by definition id without terminating another plan item instance.
-
Field Details
-
runtimeService
-
caseInstanceId
-
activatePlanItemDefinitions
-
changeToAvailableStatePlanItemDefinitions
-
terminatePlanItemDefinitions
-
waitingForRepetitionPlanItemDefinitions
protected Set<WaitingForRepetitionPlanItemDefinitionMapping> waitingForRepetitionPlanItemDefinitions -
removeWaitingForRepetitionPlanItemDefinitions
protected Set<RemoveWaitingForRepetitionPlanItemDefinitionMapping> removeWaitingForRepetitionPlanItemDefinitions -
changePlanItemIds
-
changePlanItemIdsWithDefinitionId
-
changePlanItemDefinitionWithNewTargetIds
protected Set<ChangePlanItemDefinitionWithNewTargetIdsMapping> changePlanItemDefinitionWithNewTargetIds -
caseVariables
-
childInstanceTaskVariables
-
-
Constructor Details
-
ChangePlanItemStateBuilderImpl
public ChangePlanItemStateBuilderImpl() -
ChangePlanItemStateBuilderImpl
-
-
Method Details
-
caseInstanceId
Description copied from interface:ChangePlanItemStateBuilder
Set the id of the case instance- Specified by:
caseInstanceId
in interfaceChangePlanItemStateBuilder
-
activatePlanItemDefinitionId
Description copied from interface:ChangePlanItemStateBuilder
Activate a plan item by definition id.- Specified by:
activatePlanItemDefinitionId
in interfaceChangePlanItemStateBuilder
-
activatePlanItemDefinitionIds
Description copied from interface:ChangePlanItemStateBuilder
Activate multiple plan items by definition id.- Specified by:
activatePlanItemDefinitionIds
in interfaceChangePlanItemStateBuilder
-
activatePlanItemDefinition
public ChangePlanItemStateBuilder activatePlanItemDefinition(ActivatePlanItemDefinitionMapping planItemDefinitionMapping) Description copied from interface:ChangePlanItemStateBuilder
Activate a plan item by definition mapping.- Specified by:
activatePlanItemDefinition
in interfaceChangePlanItemStateBuilder
-
activatePlanItemDefinitions
public ChangePlanItemStateBuilder activatePlanItemDefinitions(List<ActivatePlanItemDefinitionMapping> planItemDefinitionMappings) Description copied from interface:ChangePlanItemStateBuilder
Activate multiple plan items by definition mapping.- Specified by:
activatePlanItemDefinitions
in interfaceChangePlanItemStateBuilder
-
changeToAvailableStateByPlanItemDefinitionId
public ChangePlanItemStateBuilder changeToAvailableStateByPlanItemDefinitionId(String planItemDefinitionId) Description copied from interface:ChangePlanItemStateBuilder
Set a plan item to available state by definition id.- Specified by:
changeToAvailableStateByPlanItemDefinitionId
in interfaceChangePlanItemStateBuilder
-
changeToAvailableStateByPlanItemDefinitionIds
public ChangePlanItemStateBuilder changeToAvailableStateByPlanItemDefinitionIds(List<String> planItemDefinitionIds) Description copied from interface:ChangePlanItemStateBuilder
Set multiple plan items to available state by definition id.- Specified by:
changeToAvailableStateByPlanItemDefinitionIds
in interfaceChangePlanItemStateBuilder
-
changeToAvailableStateByPlanItemDefinition
public ChangePlanItemStateBuilder changeToAvailableStateByPlanItemDefinition(MoveToAvailablePlanItemDefinitionMapping planItemDefinitionMapping) Description copied from interface:ChangePlanItemStateBuilder
Set a plan item to available state by definition mapping.- Specified by:
changeToAvailableStateByPlanItemDefinition
in interfaceChangePlanItemStateBuilder
-
terminatePlanItemDefinitionId
Description copied from interface:ChangePlanItemStateBuilder
Terminate a plan item by definition id without terminating another plan item instance.- Specified by:
terminatePlanItemDefinitionId
in interfaceChangePlanItemStateBuilder
-
terminatePlanItemDefinition
public ChangePlanItemStateBuilder terminatePlanItemDefinition(TerminatePlanItemDefinitionMapping planItemDefinition) Description copied from interface:ChangePlanItemStateBuilder
Terminate a plan item by definition mapping without terminating another plan item instance.- Specified by:
terminatePlanItemDefinition
in interfaceChangePlanItemStateBuilder
-
terminatePlanItemDefinitionIds
public ChangePlanItemStateBuilder terminatePlanItemDefinitionIds(List<String> planItemDefinitionIds) Description copied from interface:ChangePlanItemStateBuilder
Terminate multiple plan items by definition id without terminating another plan item instance.- Specified by:
terminatePlanItemDefinitionIds
in interfaceChangePlanItemStateBuilder
-
addWaitingForRepetitionPlanItemDefinitionId
public ChangePlanItemStateBuilder addWaitingForRepetitionPlanItemDefinitionId(String planItemDefinitionId) Description copied from interface:ChangePlanItemStateBuilder
Add waiting for repetition to a plan item by definition id.- Specified by:
addWaitingForRepetitionPlanItemDefinitionId
in interfaceChangePlanItemStateBuilder
-
addWaitingForRepetitionPlanItemDefinition
public ChangePlanItemStateBuilder addWaitingForRepetitionPlanItemDefinition(WaitingForRepetitionPlanItemDefinitionMapping planItemDefinitionMapping) Description copied from interface:ChangePlanItemStateBuilder
Add waiting for repetition to a plan item by definition mapping.- Specified by:
addWaitingForRepetitionPlanItemDefinition
in interfaceChangePlanItemStateBuilder
-
addWaitingForRepetitionPlanItemDefinitionIds
public ChangePlanItemStateBuilder addWaitingForRepetitionPlanItemDefinitionIds(List<String> planItemDefinitionIds) Description copied from interface:ChangePlanItemStateBuilder
Add multiple waiting for repetitions to a plan item by definition id.- Specified by:
addWaitingForRepetitionPlanItemDefinitionIds
in interfaceChangePlanItemStateBuilder
-
removeWaitingForRepetitionPlanItemDefinitionId
public ChangePlanItemStateBuilder removeWaitingForRepetitionPlanItemDefinitionId(String planItemDefinitionId) Description copied from interface:ChangePlanItemStateBuilder
Remove waiting for repetition from a plan item by definition id.- Specified by:
removeWaitingForRepetitionPlanItemDefinitionId
in interfaceChangePlanItemStateBuilder
-
removeWaitingForRepetitionPlanItemDefinition
public ChangePlanItemStateBuilder removeWaitingForRepetitionPlanItemDefinition(RemoveWaitingForRepetitionPlanItemDefinitionMapping planItemDefinition) Description copied from interface:ChangePlanItemStateBuilder
Remove waiting for repetition from a plan item by definition.- Specified by:
removeWaitingForRepetitionPlanItemDefinition
in interfaceChangePlanItemStateBuilder
-
removeWaitingForRepetitionPlanItemDefinitionIds
public ChangePlanItemStateBuilder removeWaitingForRepetitionPlanItemDefinitionIds(List<String> planItemDefinitionIds) Description copied from interface:ChangePlanItemStateBuilder
Remove multiple waiting for repetitions from a plan item by definition id.- Specified by:
removeWaitingForRepetitionPlanItemDefinitionIds
in interfaceChangePlanItemStateBuilder
-
changePlanItemId
Description copied from interface:ChangePlanItemStateBuilder
Add plan item id mapping. This should not be needed in general, but there are cases where the existing plan item id is different from the new plan item id, and for this reason this option is provided.- Specified by:
changePlanItemId
in interfaceChangePlanItemStateBuilder
-
changePlanItemIds
Description copied from interface:ChangePlanItemStateBuilder
Add plan item id mapping. This should not be needed in general, but there are cases where the existing plan item id is different from the new plan item id, and for this reason this option is provided.- Specified by:
changePlanItemIds
in interfaceChangePlanItemStateBuilder
-
changePlanItemIdWithDefinitionId
public ChangePlanItemStateBuilder changePlanItemIdWithDefinitionId(String existingPlanItemDefinitionId, String newPlanItemDefinitionId) Description copied from interface:ChangePlanItemStateBuilder
Add plan item id mapping with definition id. This should not be needed in general, but there are cases where the existing plan item id is different from the new plan item id, and for this reason this option is provided.- Specified by:
changePlanItemIdWithDefinitionId
in interfaceChangePlanItemStateBuilder
-
changePlanItemIdsWithDefinitionId
public ChangePlanItemStateBuilder changePlanItemIdsWithDefinitionId(Map<String, String> changePlanItemIdWithDefinitionIdMap) Description copied from interface:ChangePlanItemStateBuilder
Add plan item id mapping with definition id. This should not be needed in general, but there are cases where the existing plan item id is different from the new plan item id, and for this reason this option is provided.- Specified by:
changePlanItemIdsWithDefinitionId
in interfaceChangePlanItemStateBuilder
-
changePlanItemDefinitionWithNewTargetIds
public ChangePlanItemStateBuilder changePlanItemDefinitionWithNewTargetIds(String existingPlanItemDefinitionId, String newPlanItemId, String newPlanItemDefinitionId) Description copied from interface:ChangePlanItemStateBuilder
Add plan item id mapping with definition id. This should not be needed in general, but there are cases where the existing plan item id is different from the new plan item id, and for this reason this option is provided.- Specified by:
changePlanItemDefinitionWithNewTargetIds
in interfaceChangePlanItemStateBuilder
-
caseVariable
Description copied from interface:ChangePlanItemStateBuilder
Set the case variable that should be set as part of the change plan item state action.- Specified by:
caseVariable
in interfaceChangePlanItemStateBuilder
-
caseVariables
Description copied from interface:ChangePlanItemStateBuilder
Set the case variable that should be set as part of the change plan item state action.- Specified by:
caseVariables
in interfaceChangePlanItemStateBuilder
-
childInstanceTaskVariable
public ChangePlanItemStateBuilder childInstanceTaskVariable(String planItemDefinitionId, String name, Object value) Description copied from interface:ChangePlanItemStateBuilder
Set the case variable that should be set as part of the change process or case task state action.- Specified by:
childInstanceTaskVariable
in interfaceChangePlanItemStateBuilder
-
childInstanceTaskVariables
public ChangePlanItemStateBuilder childInstanceTaskVariables(String planItemDefinitionId, Map<String, Object> variables) Description copied from interface:ChangePlanItemStateBuilder
Set the case variable that should be set as part of the change process or case task state action.- Specified by:
childInstanceTaskVariables
in interfaceChangePlanItemStateBuilder
-
changeState
public void changeState()Description copied from interface:ChangePlanItemStateBuilder
Changes the case instance state- Specified by:
changeState
in interfaceChangePlanItemStateBuilder
-
getCaseInstanceId
-
getActivatePlanItemDefinitions
-
getChangeToAvailableStatePlanItemDefinitions
-
getTerminatePlanItemDefinitions
-
getWaitingForRepetitionPlanItemDefinitions
public Set<WaitingForRepetitionPlanItemDefinitionMapping> getWaitingForRepetitionPlanItemDefinitions() -
getRemoveWaitingForRepetitionPlanItemDefinitions
public Set<RemoveWaitingForRepetitionPlanItemDefinitionMapping> getRemoveWaitingForRepetitionPlanItemDefinitions() -
getChangePlanItemIds
-
getChangePlanItemIdsWithDefinitionId
-
getChangePlanItemDefinitionWithNewTargetIds
public Set<ChangePlanItemDefinitionWithNewTargetIdsMapping> getChangePlanItemDefinitionWithNewTargetIds() -
getCaseVariables
-
getChildInstanceTaskVariables
-