OpenAPI seems to have a problem in getting an updated reference element info

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()){

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

Dear Mamad,

Thank you for your post. I have forwarded your question to our engineers. When I’ve got a reply, I will share it with you.

Best regards,
Jick Yeung

Dear Mamad,

Please try:

IReference reference…

IModelElement referencedElement = reference.getUrlAsModel();



Best regards,
Jick Yeung

1 Like

Thank you @Jick it works :ok_hand: