Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » update in case of removed business objects
update in case of removed business objects [message #636183] Fri, 29 October 2010 14:37 Go to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 251
Registered: July 2009
Senior Member
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
Re: update in case of removed business objects [message #636650 is a reply to message #636183] Tue, 02 November 2010 10:53 Go to previous message
Tim Kaiser is currently offline Tim KaiserFriend
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
>
Previous Topic:Drawing composite on container shape
Next Topic:POJO Domain Model - How do I get started?
Goto Forum:
  


Current Time: Sat Apr 04 09:59:01 GMT 2020

Powered by FUDForum. Page generated in 0.02074 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top