Using Drop keyword in Refining mode [message #821427] |
Thu, 15 March 2012 06:48  |
Eclipse User |
|
|
|
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'
|
|
|
|
Powered by
FUDForum. Page generated in 0.06217 seconds