public class CmmnAggregation extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COUNTER_VAR_PREFIX |
static String |
COUNTER_VAR_VALUE_SEPARATOR |
protected String |
planItemInstanceId |
| Constructor and Description |
|---|
CmmnAggregation(String planItemInstanceId) |
| Modifier and Type | Method and Description |
|---|---|
static VariableInstanceEntity |
aggregate(DelegatePlanItemInstance planItemInstance,
PlanItemVariableAggregatorContext aggregationContext,
CmmnEngineConfiguration cmmnEngineConfiguration)
Create an aggregated variable instance for the given aggregation context.
|
static VariableInstanceEntity |
aggregate(DelegatePlanItemInstance planItemInstance,
PlanItemVariableAggregatorContext aggregationContext,
CmmnEngineConfiguration cmmnEngineConfiguration,
PlanItemVariableAggregator aggregator,
String targetVarName) |
static VariableInstanceEntity |
aggregateComplete(DelegatePlanItemInstance planItemInstance,
org.flowable.cmmn.model.VariableAggregationDefinition aggregation,
CmmnEngineConfiguration cmmnEngineConfiguration)
Create an aggregated variable instance for a completed plan item.
|
static Object |
aggregateOverview(String parentScopeId,
String targetVarName,
CommandContext commandContext)
Aggregate an overview value for the scope and variable name
|
static Object |
aggregateOverviewForRepetition(PlanItemInstanceEntity planItemInstance,
org.flowable.cmmn.model.RepetitionRule repetitionRule,
String targetVarName,
CmmnEngineConfiguration cmmnEngineConfiguration)
Create an overview value for a repetition plan item
|
static VariableInstanceEntity |
createScopedVariableAggregationVariableInstance(String varName,
String scopeId,
String subScopeId,
Object value,
VariableServiceConfiguration variableServiceConfiguration) |
static String |
getAggregationTargetVarName(org.flowable.cmmn.model.VariableAggregationDefinition aggregation,
org.flowable.variable.api.delegate.VariableScope parentScope,
CmmnEngineConfiguration cmmnEngineConfiguration) |
String |
getPlanItemInstanceId() |
static Map<String,org.flowable.cmmn.model.VariableAggregationDefinition> |
groupAggregationsByTarget(org.flowable.variable.api.delegate.VariableScope scope,
Collection<org.flowable.cmmn.model.VariableAggregationDefinition> aggregations,
CmmnEngineConfiguration cmmnEngineConfiguration) |
static Map<String,List<org.flowable.variable.api.persistence.entity.VariableInstance>> |
groupVariableInstancesByName(List<? extends org.flowable.variable.api.persistence.entity.VariableInstance> instances) |
static PlanItemVariableAggregator |
resolveVariableAggregator(org.flowable.cmmn.model.VariableAggregationDefinition aggregation,
DelegatePlanItemInstance planItemInstance) |
static void |
sortVariablesByCounter(List<org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances,
List<org.flowable.variable.api.persistence.entity.VariableInstance> counterVariableInstances) |
public static final String COUNTER_VAR_PREFIX
public static final String COUNTER_VAR_VALUE_SEPARATOR
protected final String planItemInstanceId
public CmmnAggregation(String planItemInstanceId)
public String getPlanItemInstanceId()
public static VariableInstanceEntity aggregateComplete(DelegatePlanItemInstance planItemInstance, org.flowable.cmmn.model.VariableAggregationDefinition aggregation, CmmnEngineConfiguration cmmnEngineConfiguration)
planItemInstance - the planItemInstance which completedaggregation - the aggregation definitioncmmnEngineConfiguration - the cmmn engine configurationnull if no name could be resolved for the variablepublic static VariableInstanceEntity aggregate(DelegatePlanItemInstance planItemInstance, PlanItemVariableAggregatorContext aggregationContext, CmmnEngineConfiguration cmmnEngineConfiguration)
planItemInstance - the planItemInstanceaggregationContext - the aggregation contextcmmnEngineConfiguration - the cmmn engine configurationnull if no name could be resolved for the variablepublic static VariableInstanceEntity aggregate(DelegatePlanItemInstance planItemInstance, PlanItemVariableAggregatorContext aggregationContext, CmmnEngineConfiguration cmmnEngineConfiguration, PlanItemVariableAggregator aggregator, String targetVarName)
planItemInstance - the planItemInstanceaggregationContext - the aggregation contextcmmnEngineConfiguration - the cmmn engine configurationaggregator - the aggregator that should be used to perform the aggregationtargetVarName - the name of the variable, never nullnull if no name could be resolved for the variablepublic static Object aggregateOverview(String parentScopeId, String targetVarName, CommandContext commandContext)
parentScopeId - the id of the scope for which the overview needs to be donetargetVarName - the name of the variablepublic static Object aggregateOverviewForRepetition(PlanItemInstanceEntity planItemInstance, org.flowable.cmmn.model.RepetitionRule repetitionRule, String targetVarName, CmmnEngineConfiguration cmmnEngineConfiguration)
planItemInstance - one of the repetition plan item instancestargetVarName - the name of the variablecmmnEngineConfiguration - the cmmn engine configurationpublic static VariableInstanceEntity createScopedVariableAggregationVariableInstance(String varName, String scopeId, String subScopeId, Object value, VariableServiceConfiguration variableServiceConfiguration)
public static Map<String,List<org.flowable.variable.api.persistence.entity.VariableInstance>> groupVariableInstancesByName(List<? extends org.flowable.variable.api.persistence.entity.VariableInstance> instances)
public static PlanItemVariableAggregator resolveVariableAggregator(org.flowable.cmmn.model.VariableAggregationDefinition aggregation, DelegatePlanItemInstance planItemInstance)
public static void sortVariablesByCounter(List<org.flowable.variable.api.persistence.entity.VariableInstance> variableInstances, List<org.flowable.variable.api.persistence.entity.VariableInstance> counterVariableInstances)
public static Map<String,org.flowable.cmmn.model.VariableAggregationDefinition> groupAggregationsByTarget(org.flowable.variable.api.delegate.VariableScope scope, Collection<org.flowable.cmmn.model.VariableAggregationDefinition> aggregations, CmmnEngineConfiguration cmmnEngineConfiguration)
public static String getAggregationTargetVarName(org.flowable.cmmn.model.VariableAggregationDefinition aggregation, org.flowable.variable.api.delegate.VariableScope parentScope, CmmnEngineConfiguration cmmnEngineConfiguration)
Copyright © 2021 Flowable. All rights reserved.