Unable to update the URI fragment of proxy element on Edapt Migration [message #1803350] |
Wed, 27 February 2019 04:41  |
Eclipse User |
|
|
|
I got stuck on updating the proxy URI of reference element and I have not much experienced in creating custom edapt migration , Below is my scenario
I have " ParentClassA " which has ereference to " RefClassB". Attribute "linkID" is been used to Identify this object.
" linkID " will be calculated based on few factor/other attriubtes in RefClassB and its eContainter.
Now, I have changed the way "linkID" is being calculated. I want to make an edapt migration to support this.
I tried below code,
for (Instance parameterInstance : model.getAllInstances("ParentClassA ")) { Instance identifierInstance = parameterInstance.getLink("RefClassB");
identifierInstance.getUri().appendFragment(getLatestURI);
}
getLatestURI is again based on the attributes on "RefClassB", Since ,being proxy element, I am unable to get req.details from identifierInstance .
Is there any edapt operation to support the change of URI proxy value? I tried few custom migration, nothing got worked. Please someone help me on this,
NOTE: ParentClassA will be on one file and RefClassB on another file.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04855 seconds