Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » accessing created target elements in called rule
accessing created target elements in called rule [message #1258674] Thu, 27 February 2014 16:22 Go to next message
azadeh jb is currently offline azadeh jbFriend
Messages: 18
Registered: September 2013
Junior Member
Hi,

I have a called rule which creates some elements in the target model. Can I somehow access those created elements in the target model? I know for matched rules I can do this with resolveTemp operation but is there any similar way for called rules?

Thanks,
Azadeh
Re: accessing created target elements in called rule [message #1261359 is a reply to message #1258674] Sun, 02 March 2014 13:58 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

Hi Azadeh,

You can specify a return value in the "do" block of a called rule. For example, the following rule returns the "t" target element:

rule WithReturnValue(input : String) {
  to t : MM!Class (
    ...
  )
  do {
    t;
  }
}


Cheers,
Dennis


Cheers,
Dennis
Re: accessing created target elements in called rule [message #1267410 is a reply to message #1261359] Sun, 09 March 2014 00:44 Go to previous message
azadeh jb is currently offline azadeh jbFriend
Messages: 18
Registered: September 2013
Junior Member
thanks alot Dennis!!
Previous Topic:Error loading WSDL/XSD -> UML transformation programmatically
Next Topic:'allInstances()' also returns subtypes
Goto Forum:
  


Current Time: Thu Apr 18 16:08:17 GMT 2024

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

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

Back to the top