Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Model-to-Model Transformation » [ATL] Transform only a part of the rules ?
[ATL] Transform only a part of the rules ? [message #1830717] Sat, 01 August 2020 12:13 Go to next message
Burak Karaduman is currently offline Burak KaradumanFriend
Messages: 84
Registered: July 2018
Member
Dear All, I am trying to transform the instances of Z to either to the instances at left or right.

If the Z's Name attribute is entered as 'left' then the rules that belong to left must be run to convert Z to both A and B. If 'right' then the rules that belong to the right must be run to C and D.

Thanks for your help.
  • Attachment: question.png
    (Size: 13.48KB, Downloaded 84 times)
Re: [ATL] Transform only a part of the rules ? [message #1830729 is a reply to message #1830717] Sat, 01 August 2020 19:25 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7665
Registered: July 2009
Senior Member
Hi

I'm not clear why you don't just write a pair of pim2left and pim2right transformations and invoke the appropriate one. If there is considerable sharing you might explore ATL's refining capabilities.

If you really want to unify them, then ATL's guards provide one option. (In QVTr you might play around with target domains).

Regards

Ed Willink
Re: [ATL] Transform only a part of the rules ? [message #1831149 is a reply to message #1830729] Wed, 12 August 2020 12:48 Go to previous messageGo to next message
Burak Karaduman is currently offline Burak KaradumanFriend
Messages: 84
Registered: July 2018
Member
Hi Ed,

Actually, I implemented both pim2left and pim2right codes but the selection has to be controlled by the user,.
Re: [ATL] Transform only a part of the rules ? [message #1831184 is a reply to message #1831149] Thu, 13 August 2020 07:03 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7665
Registered: July 2009
Senior Member
Hi

Not knowing how your user makes a choice I can only suggest that perhaps you use a shell script to make two choices, or pass a parameter to control guards , ....

Regards

Ed Willink

[Updated on: Thu, 13 August 2020 08:02]

Report message to a moderator

Previous Topic:Model-To-Model Sibling Child Problem
Next Topic:[QVTo] BPMN2 Metamodel issues
Goto Forum:
  


Current Time: Sun Jul 21 18:00:36 GMT 2024

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

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

Back to the top