public class JsonPlanItemVariableAggregator extends Object implements PlanItemVariableAggregator
| Modifier and Type | Field and Description |
|---|---|
protected CmmnEngineConfiguration |
cmmnEngineConfiguration |
| Constructor and Description |
|---|
JsonPlanItemVariableAggregator(CmmnEngineConfiguration cmmnEngineConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Object |
aggregateMultiVariables(DelegatePlanItemInstance planItemInstance,
List<? extends VariableInstance> instances,
PlanItemVariableAggregatorContext context)
Aggregated the provided variable instances into one variable value.
|
Object |
aggregateSingleVariable(DelegatePlanItemInstance planItemInstance,
PlanItemVariableAggregatorContext context)
Create a single variable value based on the provided aggregation definition.
|
protected final CmmnEngineConfiguration cmmnEngineConfiguration
public JsonPlanItemVariableAggregator(CmmnEngineConfiguration cmmnEngineConfiguration)
public Object aggregateSingleVariable(DelegatePlanItemInstance planItemInstance, PlanItemVariableAggregatorContext context)
PlanItemVariableAggregatoraggregateSingleVariable in interface PlanItemVariableAggregatorplanItemInstance - the delegate planItemInstance from where we need to get data fromcontext - the aggregation contextpublic Object aggregateMultiVariables(DelegatePlanItemInstance planItemInstance, List<? extends VariableInstance> instances, PlanItemVariableAggregatorContext context)
PlanItemVariableAggregatoraggregateMultiVariables in interface PlanItemVariableAggregatorplanItemInstance - 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 from PlanItemVariableAggregator.aggregateSingleVariable(DelegatePlanItemInstance, PlanItemVariableAggregatorContext))context - the aggregation contextCopyright © 2023 Flowable. All rights reserved.