How to get data from multiple child models to parent model
Summary:
I want to get the data of two attributes at 2 child model level and make it available in the parent model. How do I get the data from the lower child model (for multiple root model system configuration and multiple models under 1 root model configuration ) to the upper child model? I am having difficulty in creating the path
Content (required):
I have the following BOM structure.
Deployment model-
Parent Model- {Attribute3 = Attribute1 + Attribute2;}
Child Model 1 - {This has Attribute1;}
Child Model 2 - {This has Attribute 2;}
I tried the following code in the recommendation rule.
retVal = "";
jsonPaths = dict("string");
put(jsonPaths, "Attribute1","$.children[*].configAttributes.Attribute1"); // just fetching Attribute1 for now
Tagged:
0