Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Rule choose(About the rule choosing)
[ATL] Rule choose [message #655277] Fri, 18 February 2011 22:29 Go to next message
fabio Mising name is currently offline fabio Mising nameFriend
Messages: 3
Registered: February 2011
Junior Member
hi, i would ask to you, how ATL choose which rule to apply if i have 2, or more, rule that are active?

(for active I means that the rule have a match in the source model)

If a rule have 2 or more match, the rule is applied to every match?

thanks in advance.
Re: [ATL] Rule choose [message #655449 is a reply to message #655277] Mon, 21 February 2011 08:13 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070207030204080202020901
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

Answers below:

Le 18/02/2011 23:29, fabio a écrit :
> hi, i would ask to you, how ATL choose which rule to apply if i have 2,
> or more, rule that are active?
>
> (for active I means that the rule have a match in the source model)
>

In fact, when using ATL standard rules (declarative), you cannot apply
several rules to one element (this will cause an execution error). This
is the condition which allows the compiler to manage the declarative
constructs, basically to later retrieve which input element was used to
create an output one.

To make an element be the input of several rules, you have to use
another type of rule (lazy, called, see
http://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Language#Ru les_usage
for more details).

> If a rule have 2 or more match, the rule is applied to every match?

Exactly.

>
> thanks in advance.

Best regards,

William

--------------070207030204080202020901
Content-Type: text/x-vcard; charset=utf-8;
name="william_piers.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="william_piers.vcf"

YmVnaW46dmNhcmQNCmZuOldpbGxpYW0gUGllcnMNCm46UGllcnM7V2lsbGlh bQ0Kb3JnOk9i
ZW8NCmFkcjoyIHJ1ZSBSb2JlcnQgU2NodW1hbm47O2xvdCAyNDtOQU5URVM7 OzQ0NDA4O0Zy
YW5jZQ0KZW1haWw7aW50ZXJuZXQ6d2lsbGlhbS5waWVyc0BvYmVvLmZyDQp0 aXRsZTpNREEg
Q29uc3VsdGFudA0KdGVsO3dvcms6KzMzICgwKTIgNTEgMTMgNTAgNTMNCnVy bDpodHRwOi8v
d3d3Lm9iZW8uZnINCnZlcnNpb246Mi4xDQplbmQ6dmNhcmQNCg0K
--------------070207030204080202020901--
Previous Topic:Losing atributes after transformation
Next Topic:[ETL]Absolute Paths in ANT Workflows
Goto Forum:
  


Current Time: Fri Mar 29 08:26:35 GMT 2024

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

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

Back to the top