Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » AMW » Problems with 'generateModelRef()' from output model.
Problems with 'generateModelRef()' from output model. [message #897612] Tue, 24 July 2012 14:10 Go to next message
Juan Pedro Silva is currently offline Juan Pedro Silva
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 10:16 Go to previous message
Marcos Didonet Del Fabro is currently offline Marcos Didonet Del Fabro
Messages: 15
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 Aug 22 15:39:49 EDT 2014

Powered by FUDForum. Page generated in 0.05090 seconds