Cannot call a CalledRule on a Seqeunce() [message #43448] |
Thu, 31 May 2007 10:38  |
Eclipse User |
|
|
|
Hi all,
I've got a problem with the called rules.
I want to call one of these rules like this :
rule A {
from
a : MMa!A
to
b : MMb!B (
truc <- a.getAllIWant()->collect( e | thisModule.myCalledRule( e,
a ) )
)
}
rule myCalledRule( e,a) { ... }
Where the helper getAllIWant() returns a collection.
During execution I've got this error :
message: ERROR: could not find operation including on Module having
supertypes: [OclAny]
But seems to work when we call the rule on a reference like this :
b : MMb!B (
truc <- a.refs->collect( e | thisModule.myCalledRule( e, a ) )
)
where refs is a reference of A in MMa.
So where i'm wrong ?
What i got to do for calling a called rule on a calculated sequence
Any idea
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.20103 seconds