Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » AMW » Problems with 'generateModelRef()' from output model.
Problems with 'generateModelRef()' from output model. [message #897612] Tue, 24 July 2012 18:10 Go to next message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
Hi Marco and all.
I'm trying to get the path to the output model by using the
generateModelRef() helper from the former AMW model handler in a
transformation where input and output models correspond to the same
metamodel.

Within an entrypoint rule, I have no problems using it for the input
model (Operations!OperationFlow.generateModelRef('IN') works ok), but
running it on the output model
((Operations!OperationFlow.generateModelRef('OUT')) throws a NPE.

My guess is that the cause is being within an entrypoint rule, and that
the output elements are not yet generated. I need, though, this info in
that precise moment. Any tips on this one?

Best regards, and thanks again for all your help,
Juan Pedro
Re: Problems with 'generateModelRef()' from output model. [message #900804 is a reply to message #897612] Wed, 08 August 2012 14:16 Go to previous message
Marcos Didonet Del Fabro is currently offline Marcos Didonet Del FabroFriend
Messages: 19
Registered: June 2011
Junior Member
Hello,

yes, this is the problem. The output elements does not exist yet, so they do not have an ID.

We had a similar issue with the traceability use case. As a solution, we used an endpoint rule to set up all the IDs.


Marcos.
Previous Topic:Extract Model Element Type with getReferredElement
Next Topic:[AMW] any available example with the new November, 25th 2010 version?
Goto Forum:
  


Current Time: Fri Apr 19 02:23:06 GMT 2024

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

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

Back to the top