| [news.eclipse.modeling.m2m] Re: [ATL]2 target objects from one source object |
Solved with resolveTemp:
--p_out union g_out
rule A {
from c_in: S:class
to
c_out: O:class (
c_out.elements<-c_in.properties<-collect(p|resolveTemp(p,'p_out'))
<-union(c_in.properties<-collect(p|resolveTemp(p,'g_out')))
)
}
rule B {
from p_in: S:property
to
p_out: O:field (
...
),
g_out: O:method (
...
)
}