Skip to main content



      Home
Home » Modeling » Graphiti » update in case of removed business objects
update in case of removed business objects [message #636183] Fri, 29 October 2010 10:37 Go to next message
Eclipse UserFriend
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 06:53 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 12:04:19 EDT 2025

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

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

Back to the top