Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Deleting elements in refing mode
[ATL] Deleting elements in refing mode [message #716856] Thu, 18 August 2011 15:31 Go to next message
Eszter Hofmann is currently offline Eszter HofmannFriend
Messages: 16
Registered: July 2011
Junior Member

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

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 <-,
           ident <- OclUndefined

Thank you in advance!
Re: [ATL] Deleting elements in refing mode [message #746868 is a reply to message #716856] Sun, 23 October 2011 19:22 Go to previous message
Sonia PC is currently offline Sonia PCFriend
Messages: 3
Registered: October 2011
Junior Member

I had the same problem than you with the "drop" keyword. The solution is using this at the first line of the transformation:

-- @atlcompiler atl2010

With this tag you select the compiler.

Previous Topic:[ATL] Start Genmodel transformation via ant
Next Topic:[ATL] how can I get an XML schema equivalent to the metamodel
Goto Forum:

Current Time: Thu Jul 25 17:13:01 GMT 2024

Powered by FUDForum. Page generated in 0.03323 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top