[ATL] Deleting elements in refing mode [message #716856] |
Thu, 18 August 2011 15:31  |
Eclipse User |
|
|
|
Hey,
I am writing an ATL transformation in refining mode.
I am trying to use the "drop" keyword to delete the instances of a model element:
rule deleteImports
{
from s : xp!Import
to
drop
}
but I get the following error:
org.eclipse.m2m.atl.engine.emfvm.VMException: Operation not found: OclUndefined.process_matchFirstRefining()
at process_create#151(ATLCompiler.atl[744:7-744:51])
local variables: self=IN!deleteImports, forEach=Sequence {}, v=IN!<unnamed>, opes=Sequence {}
at process_checkSubRules#172(ATLCompiler.atl[712:3-712:27])
local variables: self=IN!deleteImports
at process_matcher#188(ATLCompiler.atl[597:7-597:38])
local variables: self=IN!deleteImports, forEach=Sequence {IN!<unnamed>}, ipe=IN!<unnamed>
at process#6(ATLCompiler.atl[552:3-552:28])
local variables: self=IN!deleteImports
at process#2066(ATLCompiler.atl[463:3-463:24])
local variables: self=IN!expr2qulifiedexpr
at main#37(ATLCompiler.atl)
local variables: self=ATLCompiler : ASMModule, WriteTo='E:/project/develop/DUCX/dev/source/model/transformations/expr2qulifiedexpr.asm'
My other problem is, how to set something to "null". I tried to use OclUndefined, but has no effect:
rule transformPrimary
{
from s : xp!Primary
to t : xp!Primary (
name <- s.name,
ident <- OclUndefined
)
}
Thank you in advance!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03387 seconds