|
Re: update in case of removed business objects [message #636650 is a reply to message #636183] |
Tue, 02 November 2010 10:53 |
Tim Kaiser Messages: 118 Registered: July 2009 |
Senior Member |
|
|
Hi Henrik,
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" <hrr@protos.de> wrote in message
news:iaem1e$nk3$1@news.eclipse.org...
> Hi,
>
> 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?
>
> Thanks,
> Henrik
>
|
|
|
Powered by
FUDForum. Page generated in 0.02265 seconds