Package org.flowable.cmmn.api.runtime
Interface ChangePlanItemStateBuilder
public interface ChangePlanItemStateBuilder
Helper for changing the state of a case instance.
An instance can be obtained through
CmmnRuntimeService.createChangePlanItemStateBuilder()
.- Author:
- Tijs Rademakers
-
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 planItemDefinitionId) 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.
-
Method Details
-
caseInstanceId
Set the id of the case instance -
activatePlanItemDefinitionId
Activate a plan item by definition id. -
activatePlanItemDefinitionIds
Activate multiple plan items by definition id. -
activatePlanItemDefinition
ChangePlanItemStateBuilder activatePlanItemDefinition(ActivatePlanItemDefinitionMapping planItemDefinitionMapping) Activate a plan item by definition mapping. -
activatePlanItemDefinitions
ChangePlanItemStateBuilder activatePlanItemDefinitions(List<ActivatePlanItemDefinitionMapping> planItemDefinitionMappings) Activate multiple plan items by definition mapping. -
changeToAvailableStateByPlanItemDefinitionId
ChangePlanItemStateBuilder changeToAvailableStateByPlanItemDefinitionId(String planItemDefinitionId) Set a plan item to available state by definition id. -
changeToAvailableStateByPlanItemDefinitionIds
ChangePlanItemStateBuilder changeToAvailableStateByPlanItemDefinitionIds(List<String> planItemDefinitionIds) Set multiple plan items to available state by definition id. -
changeToAvailableStateByPlanItemDefinition
ChangePlanItemStateBuilder changeToAvailableStateByPlanItemDefinition(MoveToAvailablePlanItemDefinitionMapping planItemDefinitionMapping) Set a plan item to available state by definition mapping. -
terminatePlanItemDefinitionId
Terminate a plan item by definition id without terminating another plan item instance. -
terminatePlanItemDefinition
ChangePlanItemStateBuilder terminatePlanItemDefinition(TerminatePlanItemDefinitionMapping planItemDefinition) Terminate a plan item by definition mapping without terminating another plan item instance. -
terminatePlanItemDefinitionIds
Terminate multiple plan items by definition id without terminating another plan item instance. -
addWaitingForRepetitionPlanItemDefinitionId
Add waiting for repetition to a plan item by definition id. -
addWaitingForRepetitionPlanItemDefinition
ChangePlanItemStateBuilder addWaitingForRepetitionPlanItemDefinition(WaitingForRepetitionPlanItemDefinitionMapping planItemDefinitionMapping) Add waiting for repetition to a plan item by definition mapping. -
addWaitingForRepetitionPlanItemDefinitionIds
ChangePlanItemStateBuilder addWaitingForRepetitionPlanItemDefinitionIds(List<String> planItemDefinitionIds) Add multiple waiting for repetitions to a plan item by definition id. -
removeWaitingForRepetitionPlanItemDefinitionId
ChangePlanItemStateBuilder removeWaitingForRepetitionPlanItemDefinitionId(String planItemDefinitionId) Remove waiting for repetition from a plan item by definition id. -
removeWaitingForRepetitionPlanItemDefinition
ChangePlanItemStateBuilder removeWaitingForRepetitionPlanItemDefinition(RemoveWaitingForRepetitionPlanItemDefinitionMapping planItemDefinitionId) Remove waiting for repetition from a plan item by definition. -
removeWaitingForRepetitionPlanItemDefinitionIds
ChangePlanItemStateBuilder removeWaitingForRepetitionPlanItemDefinitionIds(List<String> planItemDefinitionIds) Remove multiple waiting for repetitions from a plan item by definition id. -
changePlanItemId
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. -
changePlanItemIds
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. -
changePlanItemIdWithDefinitionId
ChangePlanItemStateBuilder changePlanItemIdWithDefinitionId(String existingPlanItemDefinitionId, String newPlanItemDefinitionId) 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. -
changePlanItemIdsWithDefinitionId
ChangePlanItemStateBuilder changePlanItemIdsWithDefinitionId(Map<String, String> changePlanItemIdWithDefinitionIdMap) 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. -
changePlanItemDefinitionWithNewTargetIds
ChangePlanItemStateBuilder changePlanItemDefinitionWithNewTargetIds(String existingPlanItemDefinitionId, String newPlanItemId, String newPlanItemDefinitionId) 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. -
caseVariable
Set the case variable that should be set as part of the change plan item state action. -
caseVariables
Set the case variable that should be set as part of the change plan item state action. -
childInstanceTaskVariable
ChangePlanItemStateBuilder 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
ChangePlanItemStateBuilder 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. -
changeState
void changeState()Changes the case instance state- Throws:
org.flowable.common.engine.api.FlowableObjectNotFoundException
- when no case instance is foundorg.flowable.common.engine.api.FlowableException
- plan item instance could not be canceled or started
-