public class JsonVariableAggregator extends Object implements VariableAggregator
| Modifier and Type | Field and Description |
|---|---|
protected ProcessEngineConfigurationImpl |
processEngineConfiguration |
| Constructor and Description |
|---|
JsonVariableAggregator(ProcessEngineConfigurationImpl processEngineConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Object |
aggregateMultiVariables(DelegateExecution execution,
List<? extends org.flowable.variable.api.persistence.entity.VariableInstance> instances,
VariableAggregatorContext context)
Aggregated the provided variable instances into one variable value.
|
Object |
aggregateSingleVariable(DelegateExecution execution,
VariableAggregatorContext context)
Create a single variable value based on the provided aggregation definition.
|
protected final ProcessEngineConfigurationImpl processEngineConfiguration
public JsonVariableAggregator(ProcessEngineConfigurationImpl processEngineConfiguration)
public Object aggregateSingleVariable(DelegateExecution execution, VariableAggregatorContext context)
VariableAggregatoraggregateSingleVariable in interface VariableAggregatorexecution - the delegate execution from where we need to get data fromcontext - the aggregation contextpublic Object aggregateMultiVariables(DelegateExecution execution, List<? extends org.flowable.variable.api.persistence.entity.VariableInstance> instances, VariableAggregatorContext context)
VariableAggregatoraggregateMultiVariables in interface VariableAggregatorexecution - the delegated execution for which we need to do the aggregationinstances - the variable values that should be aggregated (these variables are created based on the value from VariableAggregator.aggregateSingleVariable(DelegateExecution, VariableAggregatorContext))context - the aggregation contextCopyright © 2022 Flowable. All rights reserved.