'var' - a ("using" clause) variable, rule source element, helper attribute, or actually any expression in ATL that yields a model element from an input model, and for which you want to resolve a target element value. It is the "what" that you want resolved. Example:
s.children->select(c | c.attr.oclIsUndefined())->first()
in
thisModule.resolveTemp(s.children->select(c | c.attr.oclIsUndefined())->first(), ...)
'target_pattern_name' - the name of the output element in the matched rule of which you want the value. Example:
rule Parent2Container {
from
source : MMA!Parent
to
target : MMB!Container (
children <- source.children->collect(c | thisModule.resolveTemp(c, 'second'))
)
}
will return the value of the 'second' output element created by this rule:
rule Child2MetaClassAndElement {
from
s : MMA!Child
to
t : MMB!MetaClass (...),
second : t : MMB!Element (...)
}