Hi guys
I’m using Visual Paradigm 16.1 build 20200609
Please consider this situation
We have two teamwork projects A and B which B has been referenced to A
I have an element named “ElementA” inside project A which has only one reference to another element in project B named “ElemenB”
Now I want to get information of ElementB from ElementA for example getting its name
I usually do that with the following code : (assume ElementA is a BPMN lane element)
IModelElement modelElement; // assume i have access to model element of the lane
IBPLane lane = (IBPLane) modelElement;
for(IReference reference : lane.toReferenceArray()){
System.out.println(reference.getName());
}
Everything is ok until I update ElementB and change its name to “elementB_New name” and commit project B
In this situation, when I open Project A and run my code, it will still return the old name of ElementB which is “ElementB” while it should return “ElementB_New name”
Please note that the name of reference will be updated in the reference tab of the Specification menu inside visual Paradigm but running the code will return the old name