public class BpmnAggregation extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COUNTER_VAR_PREFIX |
static String |
COUNTER_VAR_VALUE_SEPARATOR |
protected String |
executionId |
| Constructor and Description |
|---|
BpmnAggregation(String executionId) |
| Modifier and Type | Method and Description |
|---|---|
static VariableInstanceEntity |
aggregate(DelegateExecution execution,
DelegateExecution parentExecution,
VariableAggregatorContext aggregationContext,
ProcessEngineConfigurationImpl processEngineConfiguration)
Create an aggregated variable instance for the given aggregation context.
|
static VariableInstanceEntity |
aggregate(DelegateExecution execution,
DelegateExecution parentExecution,
VariableAggregatorContext aggregationContext,
ProcessEngineConfigurationImpl processEngineConfiguration,
VariableAggregator aggregator,
String targetVarName) |
static VariableInstanceEntity |
aggregateComplete(DelegateExecution execution,
DelegateExecution parentExecution,
org.flowable.bpmn.model.VariableAggregationDefinition aggregation,
ProcessEngineConfigurationImpl processEngineConfiguration)
Create an aggregated variable instance for a completed execution.
|
static Object |
aggregateOverview(String parentExecutionId,
String targetVarName,
CommandContext commandContext)
Aggregate an overview value for the execution and variable name
|
static Object |
aggregateOverviewForMultiInstance(ExecutionEntity parentExecution,
String targetVarName,
ProcessEngineConfigurationImpl processEngineConfiguration)
Create an overview value for a multi instance execution
|
static VariableInstanceEntity |
createScopedVariableAggregationVariableInstance(String varName,
String scopeId,
String subScopeId,
Object value,
VariableServiceConfiguration variableServiceConfiguration) |
static String |
getAggregationTargetVarName(org.flowable.bpmn.model.VariableAggregationDefinition aggregation,
DelegateExecution execution,
ProcessEngineConfigurationImpl processEngineConfiguration) |
String |
getExecutionId() |
static Map<String,org.flowable.bpmn.model.VariableAggregationDefinition> |
groupAggregationsByTarget(DelegateExecution multiInstanceRootExecution,
Collection<org.flowable.bpmn.model.VariableAggregationDefinition> aggregations,
ProcessEngineConfigurationImpl processEngineConfiguration) |
static Map<String,List<org.flowable.variable.api.persistence.entity.VariableInstance>> |
groupVariableInstancesByName(List<? extends org.flowable.variable.api.persistence.entity.VariableInstance> instances) |
static VariableAggregator |
resolveVariableAggregator(org.flowable.bpmn.model.VariableAggregationDefinition aggregation,
DelegateExecution execution) |
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 executionId
public BpmnAggregation(String executionId)
public String getExecutionId()
public static VariableInstanceEntity aggregateComplete(DelegateExecution execution, DelegateExecution parentExecution, org.flowable.bpmn.model.VariableAggregationDefinition aggregation, ProcessEngineConfigurationImpl processEngineConfiguration)
execution - the execution which completedparentExecution - the parent executionaggregation - the aggregation definitionprocessEngineConfiguration - the process engine configurationnull if no name could be resolved for the variablepublic static VariableInstanceEntity aggregate(DelegateExecution execution, DelegateExecution parentExecution, VariableAggregatorContext aggregationContext, ProcessEngineConfigurationImpl processEngineConfiguration)
execution - the executionparentExecution - the parent executionaggregationContext - the aggregation contextprocessEngineConfiguration - the process engine configurationnull if no name could be resolved for the variablepublic static VariableInstanceEntity aggregate(DelegateExecution execution, DelegateExecution parentExecution, VariableAggregatorContext aggregationContext, ProcessEngineConfigurationImpl processEngineConfiguration, VariableAggregator aggregator, String targetVarName)
execution - the executionparentExecution - the parent executionaggregationContext - the aggregation contextprocessEngineConfiguration - the process 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 parentExecutionId, String targetVarName, CommandContext commandContext)
parentExecutionId - the execution for which the overview needs to be donetargetVarName - the name of the variablepublic static Object aggregateOverviewForMultiInstance(ExecutionEntity parentExecution, String targetVarName, ProcessEngineConfigurationImpl processEngineConfiguration)
parentExecution - the multi instance root executiontargetVarName - the name of the variableprocessEngineConfiguration - the process 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 VariableAggregator resolveVariableAggregator(org.flowable.bpmn.model.VariableAggregationDefinition aggregation, DelegateExecution execution)
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.bpmn.model.VariableAggregationDefinition> groupAggregationsByTarget(DelegateExecution multiInstanceRootExecution, Collection<org.flowable.bpmn.model.VariableAggregationDefinition> aggregations, ProcessEngineConfigurationImpl processEngineConfiguration)
public static String getAggregationTargetVarName(org.flowable.bpmn.model.VariableAggregationDefinition aggregation, DelegateExecution execution, ProcessEngineConfigurationImpl processEngineConfiguration)
Copyright © 2022 Flowable. All rights reserved.