lazy rules with returning sequence [message #897434] |
Tue, 24 July 2012 02:58  |
Eclipse User |
|
|
|
I have written a lazy rule transforming a model element from source model to two model elements of the target models.
The problem now is that a lazy rule only returns the first element of the to block. Now I have two elements to be returned. The first is a class and the second is an association. Both elements result from one model element.
How can I reach that both elements are returned by the lazy rule?
Here is a code sample:
from
ep: M!AnElement
to
epSeq : Sequence{c2, as }, -- I want to do something like this, but this is not working
--these elements should be bundled for return
c2: UML!Class (
name <- ep.name.firstToLower()
),
as: UML!Association (
ownedEnd <- Set{p1},
navigableOwnedEnd <- Set{p2} -- directed association
),
--.......
Thanks for any help
Martin
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04025 seconds