Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » How to handle references?
How to handle references? [message #724498] Mon, 12 September 2011 13:30
fafanellu  is currently offline fafanellu
Messages: 37
Registered: July 2011
Member
Hi again, I have a relationship linked to a class, which must be unique. Once it is created in a rule, I'd like to access this instance from other rules...I thought thisModule.resolveTemp() could do the trick, but it doesn't.

For instance, I have this configuration :

rule anyrule2anything {

transf:Target!ClassA
      is_linked_to <- inst

inst:Target!ClassB (
      something <- source.something
}


inst is called just once, ClassB is unique. How can I call this class later from another rule ? Target!ClassB doesn't seem to work...

besides...on every matched rule, I can specify a condition, it works. As soon I try to do so in a lazy rule, the condition is not taken into account. Is this normal or is this a bug ?

I don't know if I expressed my proble in the right terms...thanks for your advices and your help

[Updated on: Mon, 12 September 2011 14:45]

Report message to a moderator

Previous Topic:Arguments with called rules
Next Topic:[QVT] Adding element to feature
Goto Forum:
  


Current Time: Tue Sep 30 16:00:33 GMT 2014

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

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