hi, i have a problem.
I have created 3 methods..checkName check if two string are igual or
similar, thanks to matches and getSimilarity.
When i launch the atl transformation i get a warning (
Unsupported registration: QS) and an error
What's the warning?
and how i can solved the error?
thank you
helper context String def: matches(s : String) : Boolean = if( self
<> '' and s <> '') then
if self = s then
true
else
false
endif
else
false
endif;
helper context Sequence(String) def: getSimilarity(s : Sequence(String),
sim : Integer) : Integer =
if( self = '' or s = '') then
sim
else
if( self->first() = s->first()) then
(self->excluding(self->first())).getSimilarity(s->excluding(self->first()),sim+1)
else
(self->excluding(self->first())).getSimilarity(s->excluding(self->first()),sim)
endif
endif;
helper def: checkName(bpmn : String , uml : String) : Integer =
if bpmn.matches(uml) then
1
else
(bpmn.toSequence()).getSimilarity((uml.toSequence()),0)
endif;
Unsupported registration: QS
Operation not found: Sequence {'R', 'e', 'q', 'u', 'e', 's', 't', ' ',
'C', 'a', 't', 'o', 'l', 'o', 'g', '
'}.getSimilarity(java.util.ArrayList,java.lang.Integer)
at checkName(modelmatching.atl[82:6-82:63])
local variables: self=thisModule, bpmn='Request Catolog ',
uml='Activity'
at __applyClassifierToMatch(modelmatching.atl[136:8-136:49])
local variables: self=thisModule,
link=org.eclipse.m2m.atl.engine.emfvm.lib.TransientLink@60e9fa,
bpmn=IN1!Request Catolog :BPMN!Activity, uml=IN2!Activity:UML2!Activity,
t1=OUT!<unnamed>:Gambuse!Iguality, t2=OUT!<unnamed>:Gambuse!Disparity
at __exec__(modelmatching.atl)
local variables: self=thisModule,
e=org.eclipse.m2m.atl.engine.emfvm.lib.TransientLink@60e9fa
at main(modelmatching.atl)
local variables: self=thisModule