Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Using Drop keyword in Refining mode
Using Drop keyword in Refining mode [message #821427] Thu, 15 March 2012 10:48 Go to next message
Yasser Khan is currently offline Yasser KhanFriend
Messages: 23
Registered: October 2011
Junior Member
I can't get the 'drop' keyword work to delete model elements.
Please advise.
I have the following code and errors

module UC_AP_2_P;
create umlP: UML refining umlAp: UML;

rule UseCase_To_UseCase {
from s: UML!UseCase in umlAp (
s.generalization->size() > 0
)
to t: UML!UseCase
}

rule DropGeneralization {
from s: UML!Generalization in umlAp
to
drop
}

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!DropGeneralization, forEach=Sequence {}, v=IN!<unnamed>, opes=Sequence {}
at process_checkSubRules#172(ATLCompiler.atl[712:3-712:27])
local variables: self=IN!DropGeneralization
at process_matcher#188(ATLCompiler.atl[597:7-597:38])
local variables: self=IN!DropGeneralization, forEach=Sequence {IN!<unnamed>}, ipe=IN!<unnamed>
at process#6(ATLCompiler.atl[552:3-552:28])
local variables: self=IN!DropGeneralization
at process#2066(ATLCompiler.atl[463:3-463:24])
local variables: self=IN!UC_AP_2_P
at main#37(ATLCompiler.atl)
local variables: self=ATLCompiler : ASMModule, WriteTo='C:/Users/Yasser/workspace/UCAntipatterns3/UC_AP_2_P.asm'

Re: Using Drop keyword in Refining mode [message #853644 is a reply to message #821427] Mon, 23 April 2012 07:48 Go to previous message
Sonia PC is currently offline Sonia PCFriend
Messages: 3
Registered: October 2011
Junior Member
Hello,

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.

Regards.
Previous Topic:[Acceleo] The generated code contains only the name of the first class
Next Topic:[XPand, mwe] Call "javac" and "jar" within workflow?
Goto Forum:
  


Current Time: Thu Apr 25 05:14:25 GMT 2024

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

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

Back to the top