Class JsonPlanItemVariableAggregator
java.lang.Object
org.flowable.cmmn.engine.impl.delegate.JsonPlanItemVariableAggregator
- All Implemented Interfaces:
PlanItemVariableAggregator
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJsonPlanItemVariableAggregator(CmmnEngineConfiguration cmmnEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionaggregateMultiVariables(DelegatePlanItemInstance planItemInstance, List<? extends VariableInstance> instances, PlanItemVariableAggregatorContext context) Aggregated the provided variable instances into one variable value.aggregateSingleVariable(DelegatePlanItemInstance planItemInstance, PlanItemVariableAggregatorContext context) Create a single variable value based on the provided aggregation definition.
-
Field Details
-
cmmnEngineConfiguration
-
-
Constructor Details
-
JsonPlanItemVariableAggregator
-
-
Method Details
-
aggregateSingleVariable
public Object aggregateSingleVariable(DelegatePlanItemInstance planItemInstance, PlanItemVariableAggregatorContext context) Description copied from interface:PlanItemVariableAggregatorCreate a single variable value based on the provided aggregation definition. This is called after a single repeatable plan item instance is completed, or an overview for a non completed repeatable plan item instance is needed.- Specified by:
aggregateSingleVariablein interfacePlanItemVariableAggregator- Parameters:
planItemInstance- the delegate planItemInstance from where we need to get data fromcontext- the aggregation context- Returns:
- the value for the aggregated variable
-
aggregateMultiVariables
public Object aggregateMultiVariables(DelegatePlanItemInstance planItemInstance, List<? extends VariableInstance> instances, PlanItemVariableAggregatorContext context) Description copied from interface:PlanItemVariableAggregatorAggregated the provided variable instances into one variable value. This is called when all repeatable plan item instances are complete, or an overview for repeatable plan item instances is needed.- Specified by:
aggregateMultiVariablesin interfacePlanItemVariableAggregator- Parameters:
planItemInstance- the delegated planItemInstance for which we need to do the aggregationinstances- the variable values that should be aggregated (these variables are created based on the value fromPlanItemVariableAggregator.aggregateSingleVariable(DelegatePlanItemInstance, PlanItemVariableAggregatorContext))context- the aggregation context- Returns:
- the aggregated value
-