Hi Walter,
I have already shared the screen shot. There, you can see that I am getting duplicate record of “1.1.1 Recurring”. “1.1.1 Recurring2”, “1.1.1 Recurring3”, “1.1.1 Recurring4” are all duplicate records which should not be in the tree.
Please check my JSON which I am using to create this tree.
{“CapabilityMap”:{“373”:{“cm_id”
:“373”,“cm_name”:“mapwithoutcap”,“Count”:8,“CapLevel”:“4”,“Level”:{“1”:{“Capability”:{“38537”:{“capability_id”
:“38537”,“caplevel”:“1”,“parentUniqueIndex”:“0”,“cm_id”:“373”,“name”:“Manufacturing and Operational Excellence”
,“unique_index”:“0_3”,“parent_id”:“0”,“cm_name”:“mapwithoutcap”,“importance_cap_organization”:null,“cap_assessment”
:null,“technology_health_check”:null,“business_health_check”:null,“AssocSpecs”:null}}},“2”:{“Capability”
:{“38538”:{“capability_id”:“38538”,“caplevel”:“2”,“parentUniqueIndex”:“0_3”,“cm_id”:“373”,“name”:“Production
Management”,“unique_index”:“0_3_1”,“parent_id”:“38537”,“cm_name”:“mapwithoutcap”,“importance_cap_organization”
:null,“cap_assessment”:null,“technology_health_check”:null,“business_health_check”:null,“AssocSpecs”
:“9,3”}}},“3”:{“Capability”:{“38539”:{“capability_id”:“38539”,“caplevel”:“3”,“parentUniqueIndex”:“0_3_1”
,“cm_id”:“373”,“name”:“Scheduling”,“unique_index”:“0_3_1_1”,“parent_id”:“38538”,“cm_name”:“mapwithoutcap”
,“importance_cap_organization”:null,“cap_assessment”:null,“technology_health_check”:null,“business_health_check”
:null,“AssocSpecs”:null},“38543”:{“capability_id”:“38543”,“caplevel”:“3”,“parentUniqueIndex”:“0_3_1”
,“cm_id”:“373”,“name”:“Manufacture to Sequence”,“unique_index”:“0_3_1_2”,“parent_id”:“38538”,“cm_name”
:“mapwithoutcap”,“importance_cap_organization”:null,“cap_assessment”:null,“technology_health_check”:null
,“business_health_check”:null,“AssocSpecs”:null},“38551”:{“capability_id”:“38551”,“caplevel”:“3”,“parentUniqueIndex”
:“0_3_1”,“cm_id”:“373”,“name”:“Batch Manufacturing”,“unique_index”:“0_3_1_3”,“parent_id”:“38538”,“cm_name”
:“mapwithoutcap”,“importance_cap_organization”:null,“cap_assessment”:null,“technology_health_check”:null
,“business_health_check”:null,“AssocSpecs”:null}}},“4”:{“Capability”:{“38541”:{“capability_id”:“38541”
,“caplevel”:“4”,“parentUniqueIndex”:“0_3_1_1”,“cm_id”:“373”,“name”:“Dispatching”,“unique_index”:“0_3_1_1_2”
,“parent_id”:“38539”,“cm_name”:“mapwithoutcap”,“importance_cap_organization”:null,“cap_assessment”:null
,“technology_health_check”:null,“business_health_check”:null,“AssocSpecs”:“9,9”},“38544”:{“capability_id”
:“38544”,“caplevel”:“4”,“parentUniqueIndex”:“0_3_1_2”,“cm_id”:“373”,“name”:“Components picking list”
,“unique_index”:“0_3_1_2_1”,“parent_id”:“38543”,“cm_name”:“mapwithoutcap”,“importance_cap_organization”
:null,“cap_assessment”:null,“technology_health_check”:null,“business_health_check”:null,“AssocSpecs”
:“9”},“38552”:{“capability_id”:“38552”,“caplevel”:“4”,“parentUniqueIndex”:“0_3_1_3”,“cm_id”:“373”,“name”
:“Components picking list”,“unique_index”:“0_3_1_3_1”,“parent_id”:“38551”,“cm_name”:“mapwithoutcap”,“importance_cap_organization”
:null,“cap_assessment”:null,“technology_health_check”:null,“business_health_check”:null,“AssocSpecs”
:“9”}}}}}}}
I have tried “diagram.findNodeForData(nodedata)” and also tried “diagram.model.containsNodeData(nodedata)” but I always gets the null value.
Hope it helps you to identify the problem.
Thank you.