|Re: update in case of removed business objects [message #636650 is a reply to message #636183]
||Tue, 02 November 2010 10:53
| Tim Kaiser
Registered: July 2009
i agree with your assessment.
How the links to business objects are stored
in the resource of the diagram model depends
on the resource used for the business model.
We have no generic solution from the framework side.
You might try to substitute the XText resource
by a resource which supports something like
extrinsic IDs (EMF slang). For instance,
if you would extend XMLResourceImpl and
override useUUIDs() to return true,
the problem would be solved. I do not
know what is possible w.r.t. XText.
Best regards, Tim
"Henrik Rentz-Reichert" <firstname.lastname@example.org> wrote in message
> I'm trying to add UpdateFeatures to my diagram.
> This is straight forward for changed attributes and also handled in
> detail by the tutorial.
> However, if business objects are removed I'm facing the problems that BO
> references (aka links) become invalid and will point to plain
> EObjectImpl proxy objects.
> Also due to the kind of reference used, with an index into the parent
> BO's containment list, object mappings might be shifted.
> If I had
> BO1 <- PE1
> BO2 <- PE2
> BO3 <- PE3
> and I remove BO2 from the business model I will have
> BO1 <- PE1
> BO3 <- PE2
> unresolved proxy <- PE3
> So while we expected PE2 to become invalid, it actually is PE3.
> It seems to me that this can only be solved using uuids in resources.
> But since my business model is stored in an Xtext resource there is no
> uuid available...
> Do you have a generic approach to this kind of problems?
Powered by FUDForum
. Page generated in 0.02074 seconds