[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.modeling.gmt.amw] feature e does not exist on
|
Hi,
i tried to define some transformation rules with Atl and was stumbled on
the following:
(exerpt)
module CPMMWeave;
create OUT : MOF from IN : AMW, interbase: MOF, structurebase: MOF,
advice : MOF;
helper context MOF!EModelElement def: isStBase : Boolean =
MOF!EModelElement.allInstancesFrom ('structurebase')-> exists(e | e =
self );
rule CopyStClass {
from
be : MOF!EClass (be.isStBase)
to
out : MOF!EClass (
name <- be.name,
)
}
if i run this littel fragment i get
****** BEGIN Stack Trace
message: feature isStBase does not exist on interbase!EClass
A.main() : ??#32 null
local variables = {self=CPMMWeave : ASMModule}
local stack = []
A.__matcher__() : ??#1 null
local variables = {self=CPMMWeave : ASMModule}
local stack = []
A.__matchCopyBaseInteractionClass() : ??#31 23:34-23:45
local variables = {be=interbase!EClass, self=CPMMWeave : ASMModule}
local stack = []
****** END Stack Trace
has someone any idea why this is happing,
i run other examples found on the homepage in works fine,
but here i do not understand, why Atl does not recognize that interbase
conforms to the MOF(Ecore) model and cannot apply isStBase rule?