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 Stringprotected Set<ChangePlanItemIdMapping>protected Set<ChangePlanItemIdWithDefinitionIdMapping>protected Set<MoveToAvailablePlanItemDefinitionMapping>protected CmmnRuntimeServiceImplprotected 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.voidChanges 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:ChangePlanItemStateBuilderSet the id of the case instance- Specified by:
caseInstanceIdin interfaceChangePlanItemStateBuilder
-
activatePlanItemDefinitionId
Description copied from interface:ChangePlanItemStateBuilderActivate a plan item by definition id.- Specified by:
activatePlanItemDefinitionIdin interfaceChangePlanItemStateBuilder
-
activatePlanItemDefinitionIds
Description copied from interface:ChangePlanItemStateBuilderActivate multiple plan items by definition id.- Specified by:
activatePlanItemDefinitionIdsin interfaceChangePlanItemStateBuilder
-
activatePlanItemDefinition
public ChangePlanItemStateBuilder activatePlanItemDefinition(ActivatePlanItemDefinitionMapping planItemDefinitionMapping) Description copied from interface:ChangePlanItemStateBuilderActivate a plan item by definition mapping.- Specified by:
activatePlanItemDefinitionin interfaceChangePlanItemStateBuilder
-
activatePlanItemDefinitions
public ChangePlanItemStateBuilder activatePlanItemDefinitions(List<ActivatePlanItemDefinitionMapping> planItemDefinitionMappings) Description copied from interface:ChangePlanItemStateBuilderActivate multiple plan items by definition mapping.- Specified by:
activatePlanItemDefinitionsin interfaceChangePlanItemStateBuilder
-
changeToAvailableStateByPlanItemDefinitionId
public ChangePlanItemStateBuilder changeToAvailableStateByPlanItemDefinitionId(String planItemDefinitionId) Description copied from interface:ChangePlanItemStateBuilderSet a plan item to available state by definition id.- Specified by:
changeToAvailableStateByPlanItemDefinitionIdin interfaceChangePlanItemStateBuilder
-
changeToAvailableStateByPlanItemDefinitionIds
public ChangePlanItemStateBuilder changeToAvailableStateByPlanItemDefinitionIds(List<String> planItemDefinitionIds) Description copied from interface:ChangePlanItemStateBuilderSet multiple plan items to available state by definition id.- Specified by:
changeToAvailableStateByPlanItemDefinitionIdsin interfaceChangePlanItemStateBuilder
-
changeToAvailableStateByPlanItemDefinition
public ChangePlanItemStateBuilder changeToAvailableStateByPlanItemDefinition(MoveToAvailablePlanItemDefinitionMapping planItemDefinitionMapping) Description copied from interface:ChangePlanItemStateBuilderSet a plan item to available state by definition mapping.- Specified by:
changeToAvailableStateByPlanItemDefinitionin interfaceChangePlanItemStateBuilder
-
terminatePlanItemDefinitionId
Description copied from interface:ChangePlanItemStateBuilderTerminate a plan item by definition id without terminating another plan item instance.- Specified by:
terminatePlanItemDefinitionIdin interfaceChangePlanItemStateBuilder
-
terminatePlanItemDefinition
public ChangePlanItemStateBuilder terminatePlanItemDefinition(TerminatePlanItemDefinitionMapping planItemDefinition) Description copied from interface:ChangePlanItemStateBuilderTerminate a plan item by definition mapping without terminating another plan item instance.- Specified by:
terminatePlanItemDefinitionin interfaceChangePlanItemStateBuilder
-
terminatePlanItemDefinitionIds
public ChangePlanItemStateBuilder terminatePlanItemDefinitionIds(List<String> planItemDefinitionIds) Description copied from interface:ChangePlanItemStateBuilderTerminate multiple plan items by definition id without terminating another plan item instance.- Specified by:
terminatePlanItemDefinitionIdsin interfaceChangePlanItemStateBuilder
-
addWaitingForRepetitionPlanItemDefinitionId
public ChangePlanItemStateBuilder addWaitingForRepetitionPlanItemDefinitionId(String planItemDefinitionId) Description copied from interface:ChangePlanItemStateBuilderAdd waiting for repetition to a plan item by definition id.- Specified by:
addWaitingForRepetitionPlanItemDefinitionIdin interfaceChangePlanItemStateBuilder
-
addWaitingForRepetitionPlanItemDefinition
public ChangePlanItemStateBuilder addWaitingForRepetitionPlanItemDefinition(WaitingForRepetitionPlanItemDefinitionMapping planItemDefinitionMapping) Description copied from interface:ChangePlanItemStateBuilderAdd waiting for repetition to a plan item by definition mapping.- Specified by:
addWaitingForRepetitionPlanItemDefinitionin interfaceChangePlanItemStateBuilder
-
addWaitingForRepetitionPlanItemDefinitionIds
public ChangePlanItemStateBuilder addWaitingForRepetitionPlanItemDefinitionIds(List<String> planItemDefinitionIds) Description copied from interface:ChangePlanItemStateBuilderAdd multiple waiting for repetitions to a plan item by definition id.- Specified by:
addWaitingForRepetitionPlanItemDefinitionIdsin interfaceChangePlanItemStateBuilder
-
removeWaitingForRepetitionPlanItemDefinitionId
public ChangePlanItemStateBuilder removeWaitingForRepetitionPlanItemDefinitionId(String planItemDefinitionId) Description copied from interface:ChangePlanItemStateBuilderRemove waiting for repetition from a plan item by definition id.- Specified by:
removeWaitingForRepetitionPlanItemDefinitionIdin interfaceChangePlanItemStateBuilder
-
removeWaitingForRepetitionPlanItemDefinition
public ChangePlanItemStateBuilder removeWaitingForRepetitionPlanItemDefinition(RemoveWaitingForRepetitionPlanItemDefinitionMapping planItemDefinition) Description copied from interface:ChangePlanItemStateBuilderRemove waiting for repetition from a plan item by definition.- Specified by:
removeWaitingForRepetitionPlanItemDefinitionin interfaceChangePlanItemStateBuilder
-
removeWaitingForRepetitionPlanItemDefinitionIds
public ChangePlanItemStateBuilder removeWaitingForRepetitionPlanItemDefinitionIds(List<String> planItemDefinitionIds) Description copied from interface:ChangePlanItemStateBuilderRemove multiple waiting for repetitions from a plan item by definition id.- Specified by:
removeWaitingForRepetitionPlanItemDefinitionIdsin interfaceChangePlanItemStateBuilder
-
changePlanItemId
Description copied from interface:ChangePlanItemStateBuilderAdd 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:
changePlanItemIdin interfaceChangePlanItemStateBuilder
-
changePlanItemIds
Description copied from interface:ChangePlanItemStateBuilderAdd 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:
changePlanItemIdsin interfaceChangePlanItemStateBuilder
-
changePlanItemIdWithDefinitionId
public ChangePlanItemStateBuilder changePlanItemIdWithDefinitionId(String existingPlanItemDefinitionId, String newPlanItemDefinitionId) Description copied from interface:ChangePlanItemStateBuilderAdd 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:
changePlanItemIdWithDefinitionIdin interfaceChangePlanItemStateBuilder
-
changePlanItemIdsWithDefinitionId
public ChangePlanItemStateBuilder changePlanItemIdsWithDefinitionId(Map<String, String> changePlanItemIdWithDefinitionIdMap) Description copied from interface:ChangePlanItemStateBuilderAdd 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:
changePlanItemIdsWithDefinitionIdin interfaceChangePlanItemStateBuilder
-
changePlanItemDefinitionWithNewTargetIds
public ChangePlanItemStateBuilder changePlanItemDefinitionWithNewTargetIds(String existingPlanItemDefinitionId, String newPlanItemId, String newPlanItemDefinitionId) Description copied from interface:ChangePlanItemStateBuilderAdd 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:
changePlanItemDefinitionWithNewTargetIdsin interfaceChangePlanItemStateBuilder
-
caseVariable
Description copied from interface:ChangePlanItemStateBuilderSet the case variable that should be set as part of the change plan item state action.- Specified by:
caseVariablein interfaceChangePlanItemStateBuilder
-
caseVariables
Description copied from interface:ChangePlanItemStateBuilderSet the case variable that should be set as part of the change plan item state action.- Specified by:
caseVariablesin interfaceChangePlanItemStateBuilder
-
childInstanceTaskVariable
public ChangePlanItemStateBuilder childInstanceTaskVariable(String planItemDefinitionId, String name, Object value) Description copied from interface:ChangePlanItemStateBuilderSet the case variable that should be set as part of the change process or case task state action.- Specified by:
childInstanceTaskVariablein interfaceChangePlanItemStateBuilder
-
childInstanceTaskVariables
public ChangePlanItemStateBuilder childInstanceTaskVariables(String planItemDefinitionId, Map<String, Object> variables) Description copied from interface:ChangePlanItemStateBuilderSet the case variable that should be set as part of the change process or case task state action.- Specified by:
childInstanceTaskVariablesin interfaceChangePlanItemStateBuilder
-
changeState
public void changeState()Description copied from interface:ChangePlanItemStateBuilderChanges the case instance state- Specified by:
changeStatein interfaceChangePlanItemStateBuilder
-
getCaseInstanceId
-
getActivatePlanItemDefinitions
-
getChangeToAvailableStatePlanItemDefinitions
-
getTerminatePlanItemDefinitions
-
getWaitingForRepetitionPlanItemDefinitions
public Set<WaitingForRepetitionPlanItemDefinitionMapping> getWaitingForRepetitionPlanItemDefinitions() -
getRemoveWaitingForRepetitionPlanItemDefinitions
public Set<RemoveWaitingForRepetitionPlanItemDefinitionMapping> getRemoveWaitingForRepetitionPlanItemDefinitions() -
getChangePlanItemIds
-
getChangePlanItemIdsWithDefinitionId
-
getChangePlanItemDefinitionWithNewTargetIds
public Set<ChangePlanItemDefinitionWithNewTargetIdsMapping> getChangePlanItemDefinitionWithNewTargetIds() -
getCaseVariables
-
getChildInstanceTaskVariables
-