Ryan
some questions to debug because I am unable to get desired result after putting this altogether
1) how do I put trace info for seeing values in mattuple?
matTuple.put(material_id, md);
trace.addInfo("mattuple " + matTuple);
md is the Material Data object and mattuple is the hashmap
the above trace is not giving me values for md. It's giving as
mattuple {123=com.mdt.hashmapfortuples.MaterialData@1697bc3c, 456=com.mdt.hashmapfortuples.MaterialData@1697bc3c, 789=com.mdt.hashmapfortuples.MaterialData@1697bc3c}
123, 456 and 789 are material IDs in my case
Until I see what is populated in the mattuple, I can't really understand if the values for matINTID and tuples are correctly transferred to the object 'md' of 'Material Data' class.
2) when I put trace in the extract hashmap function, I get the value as below for the hashmap.
matmap1{123=com.mdt.hashmapfortuples.MaterialData@1697bc3c, 456=com.mdt.hashmapfortuples.MaterialData@1697bc3c, 789=com.mdt.hashmapfortuples.MaterialData@1697bc3c}
this is the code
HashMap<String, MaterialData> matmap1 = | (HashMap<String, MaterialData>) container.getGlobalContainer().getParameter("matmap"); |
AbstractTrace trace = container.getTrace();
trace.addInfo("matmap1" + matmap1);
In the target structure, for 3 material Ids , I am always getting the last material ID internal Id for all the 3 target Material node and last material tuple Id as well
thx
mike