Class CaseReactivationBuilderImpl
java.lang.Object
org.flowable.cmmn.engine.impl.reactivation.CaseReactivationBuilderImpl
- All Implemented Interfaces:
CaseReactivationBuilder
The case reactivation builder implementation storing reactivation specific information and executing the reactivation command to reactivate a historical
case instance.
- Author:
- Micha Kiener
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCaseReactivationBuilderImpl
(CommandExecutor commandExecutor, String caseInstanceId) -
Method Summary
Modifier and TypeMethodDescriptionaddTerminatedPlanItemInstanceForPlanItemDefinition
(String planItemDefinitionId) Adds a plan item instance for a new plan item definition.boolean
boolean
After having entered all necessary information for the reactivation, this method actually triggers the reactivation and returns the reactivated case instance from the runtime.transientVariable
(String name, Object value) Adds a transient variable to the case before triggering the reactivation event which is available only during that first transaction.transientVariables
(Map<String, Object> variables) Adds a map of transient variables to the case before triggering the reactivation event which are available only during that first transaction.Adds a variable to be added to the case before triggering the reactivation event.Adds the map of variables to the case before triggering the reactivation event.
-
Field Details
-
commandExecutor
-
caseInstanceId
-
terminatedPlanItemDefinitionIds
-
variables
-
transientVariables
-
-
Constructor Details
-
CaseReactivationBuilderImpl
-
-
Method Details
-
getCaseInstanceId
-
getTerminatedPlanItemDefinitionIds
-
hasVariables
public boolean hasVariables() -
getVariables
-
hasTransientVariables
public boolean hasTransientVariables() -
getTransientVariables
-
addTerminatedPlanItemInstanceForPlanItemDefinition
public CaseReactivationBuilder addTerminatedPlanItemInstanceForPlanItemDefinition(String planItemDefinitionId) Description copied from interface:CaseReactivationBuilder
Adds a plan item instance for a new plan item definition. This is mainly needed when no reactivation listener was present in the old case definition id.- Specified by:
addTerminatedPlanItemInstanceForPlanItemDefinition
in interfaceCaseReactivationBuilder
- Parameters:
planItemDefinitionId
- the plan item definition id for which a new plan item instance will be created in available state- Returns:
- the builder for method chaining
-
variable
Description copied from interface:CaseReactivationBuilder
Adds a variable to be added to the case before triggering the reactivation event.- Specified by:
variable
in interfaceCaseReactivationBuilder
- Parameters:
name
- the name of the variable to be addedvalue
- the value of the variable to be added- Returns:
- the builder for method chaining
-
variables
Description copied from interface:CaseReactivationBuilder
Adds the map of variables to the case before triggering the reactivation event.- Specified by:
variables
in interfaceCaseReactivationBuilder
- Parameters:
variables
- the map of variables to be added to the case- Returns:
- the builder for method chaining
-
transientVariable
Description copied from interface:CaseReactivationBuilder
Adds a transient variable to the case before triggering the reactivation event which is available only during that first transaction.- Specified by:
transientVariable
in interfaceCaseReactivationBuilder
- Parameters:
name
- the name of the variable to be addedvalue
- the value of the variable to be added- Returns:
- the builder for method chaining
-
transientVariables
Description copied from interface:CaseReactivationBuilder
Adds a map of transient variables to the case before triggering the reactivation event which are available only during that first transaction.- Specified by:
transientVariables
in interfaceCaseReactivationBuilder
- Parameters:
variables
- the map of variables to be added to the case- Returns:
- the builder for method chaining
-
reactivate
Description copied from interface:CaseReactivationBuilder
After having entered all necessary information for the reactivation, this method actually triggers the reactivation and returns the reactivated case instance from the runtime.- Specified by:
reactivate
in interfaceCaseReactivationBuilder
- Returns:
- the reactivated case instance copied back to the runtime
-