Class SubmittedHierarchyVariablesExtractor
- java.lang.Object
-
- com.flowable.platform.common.form.SubmittedHierarchyVariablesExtractor
-
- All Implemented Interfaces:
SubmittedVariablesExtractor
public class SubmittedHierarchyVariablesExtractor extends Object implements SubmittedVariablesExtractor
Extracts BE expressions from the submitted variable names
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.fasterxml.jackson.databind.ObjectMapperobjectMapper
-
Constructor Summary
Constructors Constructor Description SubmittedHierarchyVariablesExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcreateRegexMatchExpression(String outputValue)protected voiddeepCopyJsonVariables(Map<String,Object> variableMap)Map<String,Object>extractVariables(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, Map<String,Object> submittedValues, FlowableFormModel formModel)voidfillOutputMappings(String elementId, String elementType, String scopeDefinitionId, String scopeType, Map<String,Object> allowedOutputMap, Map<String,Object> blockedOutputMap)protected voidfillPrefixValues(List<String> prefixList, Map<String,Object> outputMap)protected voidfillScopedVariableInMap(String scopedValue, Map<String,Object> scopedVariablesMap)protected voidfillScopedVariablesInMap(List<String> scopedValues, Map<String,Object> scopedVariablesMap)protected voidfilterAllowedScopedVariables(Object variableObject, Map<String,Object> allowedOutputMap, String fullVariableName, boolean variableNameMatched)protected voidfilterBlockedScopedVariables(Object variableObject, Map<String,Object> blockedOutputMap, String fullVariableName, boolean variableNameMatched)voidfilterVariablesWithOutputMapping(Map<String,Object> variableMap, Map<String,Object> allowedOutputMap, Map<String,Object> blockedOutputMap)protected List<String>getCmmnExtensionElementValues(List<ExtensionElement> extensionElements)protected List<String>getExtensionElementValues(List<ExtensionElement> extensionElements)protected booleanhasMatchingAllowedScope(Object variableObject, String fullVariableName, String fullAllowedOutput)
-
-
-
Method Detail
-
extractVariables
public Map<String,Object> extractVariables(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, Map<String,Object> submittedValues, FlowableFormModel formModel)
- Specified by:
extractVariablesin interfaceSubmittedVariablesExtractor
-
filterVariablesWithOutputMapping
public void filterVariablesWithOutputMapping(Map<String,Object> variableMap, Map<String,Object> allowedOutputMap, Map<String,Object> blockedOutputMap)
- Specified by:
filterVariablesWithOutputMappingin interfaceSubmittedVariablesExtractor
-
fillOutputMappings
public void fillOutputMappings(String elementId, String elementType, String scopeDefinitionId, String scopeType, Map<String,Object> allowedOutputMap, Map<String,Object> blockedOutputMap)
- Specified by:
fillOutputMappingsin interfaceSubmittedVariablesExtractor
-
filterAllowedScopedVariables
protected void filterAllowedScopedVariables(Object variableObject, Map<String,Object> allowedOutputMap, String fullVariableName, boolean variableNameMatched)
-
filterBlockedScopedVariables
protected void filterBlockedScopedVariables(Object variableObject, Map<String,Object> blockedOutputMap, String fullVariableName, boolean variableNameMatched)
-
hasMatchingAllowedScope
protected boolean hasMatchingAllowedScope(Object variableObject, String fullVariableName, String fullAllowedOutput)
-
fillScopedVariablesInMap
protected void fillScopedVariablesInMap(List<String> scopedValues, Map<String,Object> scopedVariablesMap)
-
fillScopedVariableInMap
protected void fillScopedVariableInMap(String scopedValue, Map<String,Object> scopedVariablesMap)
-
fillPrefixValues
protected void fillPrefixValues(List<String> prefixList, Map<String,Object> outputMap)
-
getExtensionElementValues
protected List<String> getExtensionElementValues(List<ExtensionElement> extensionElements)
-
getCmmnExtensionElementValues
protected List<String> getCmmnExtensionElementValues(List<ExtensionElement> extensionElements)
-
-