Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » ATL:Multiple assignments in an iterator
ATL:Multiple assignments in an iterator [message #482739] Thu, 27 August 2009 17:55
venkatesh  is currently offline venkatesh Friend
Messages: 41
Registered: July 2009
Member
Hi,

I have a rule in which


matichingRules :PdmModel!MatchingRules (
name<-'matchingrules',
ldapMatchingRules<-LdmMetaModel!LDMAttribute.allInstances()- >iterate(e; res
: Sequence( PdmModel!LdapMatchingRuleType) = Sequence {} |

let rs:TupleType(rulename:String,oid :String)=
thisModule.getmatchingrules(e.type).get('aprxMatchingRule') in
let rs1:TupleType(rulename:String,oid :String)=
thisModule.getmatchingrules(e.type).get('eqMatchingRule') in
if rs.oclIsUndefined()
if not res->collect(f | f.name)->includes(rs.rulename)then
res->including(thisModule.ldapMatchigrule(rs.rulename,rs.oid))
else
res
endif
else
res
endif

if rs.oclIsUndefined()
if not res->collect(f | f.name)->includes(rs1.rulename)then
res->including(thisModule.ldapMatchigrule(rs1.rulename,rs1.oid))
else
res
endif
else
res
endif))

Here i wanted to add rs,rs1 for each LdmMetaModel!LDMAttribute but mutiple
if loop is not working

before adding rs,rs for each LdmMetaModel!LDMAttribute i'll check if it's
already exists to avoid duplicates.


can u help me

thanks
venkatesh
Previous Topic:Unsupported registration: QS
Next Topic:[ATL] How to set up the dependency owner or namespace by ATL
Goto Forum:
  


Current Time: Tue Apr 23 12:57:44 GMT 2024

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

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

Back to the top