| Arguments with called rules [message #724266] |
Sun, 11 September 2011 16:38  |
fafanellu Messages: 37 Registered: July 2011 |
Member |
|
|
Hi,
I'd like to know what sort of parameters I can use when calling a called rule from another rule (only the basic types, or also the types from my source metamodel?).
I have a called rule of this form :
rule createREF (s : A!A1) {
to
d:B!B2(
attribute <- s.something
)
}
which takes as a parameter an instance of A1 type, and a classic matched rule of this form :
rule createDeltaIntRule{
from
s:A!A1
to
d:B!B1(
a1<-thisModule.createREF(s)
)
}
As I said before, I'd like to call createREF, giving to it s (A!A1) as a parameter. Is it possible to do so ?
Thanks for your help
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01523 seconds