Skip to main content



      Home
Home » Archived » 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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Mar 16 15:21:30 EDT 2025

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

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

Back to the top