Removed no used dynamicEntityArguments from ctx
This commit is contained in:
parent
40276c6c15
commit
bc78988443
@ -60,7 +60,6 @@ public class CalculatedFieldCtx {
|
|||||||
private final Map<String, Argument> arguments;
|
private final Map<String, Argument> arguments;
|
||||||
private final Map<ReferencedEntityKey, String> mainEntityArguments;
|
private final Map<ReferencedEntityKey, String> mainEntityArguments;
|
||||||
private final Map<EntityId, Map<ReferencedEntityKey, String>> linkedEntityArguments;
|
private final Map<EntityId, Map<ReferencedEntityKey, String>> linkedEntityArguments;
|
||||||
private final Map<ReferencedEntityKey, String> dynamicEntityArguments;
|
|
||||||
private final List<String> argNames;
|
private final List<String> argNames;
|
||||||
private Output output;
|
private Output output;
|
||||||
private String expression;
|
private String expression;
|
||||||
@ -88,13 +87,13 @@ public class CalculatedFieldCtx {
|
|||||||
this.arguments = configuration.getArguments();
|
this.arguments = configuration.getArguments();
|
||||||
this.mainEntityArguments = new HashMap<>();
|
this.mainEntityArguments = new HashMap<>();
|
||||||
this.linkedEntityArguments = new HashMap<>();
|
this.linkedEntityArguments = new HashMap<>();
|
||||||
this.dynamicEntityArguments = new HashMap<>();
|
|
||||||
for (Map.Entry<String, Argument> entry : arguments.entrySet()) {
|
for (Map.Entry<String, Argument> entry : arguments.entrySet()) {
|
||||||
var refId = entry.getValue().getRefEntityId();
|
var refId = entry.getValue().getRefEntityId();
|
||||||
var refKey = entry.getValue().getRefEntityKey();
|
var refKey = entry.getValue().getRefEntityKey();
|
||||||
if (refId == null && entry.getValue().getRefDynamicSource() != null) {
|
if (refId == null && entry.getValue().getRefDynamicSource() != null) {
|
||||||
dynamicEntityArguments.put(refKey, entry.getKey());
|
continue;
|
||||||
} else if (refId == null || refId.equals(calculatedField.getEntityId())) {
|
}
|
||||||
|
if (refId == null || refId.equals(calculatedField.getEntityId())) {
|
||||||
mainEntityArguments.put(refKey, entry.getKey());
|
mainEntityArguments.put(refKey, entry.getKey());
|
||||||
} else {
|
} else {
|
||||||
linkedEntityArguments.computeIfAbsent(refId, key -> new HashMap<>()).put(refKey, entry.getKey());
|
linkedEntityArguments.computeIfAbsent(refId, key -> new HashMap<>()).put(refKey, entry.getKey());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user