Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How to bypass ATL buildin Keyword if it is used as attribute/relation-name in metamodel
[ATL] How to bypass ATL buildin Keyword if it is used as attribute/relation-name in metamodel [message #553000] Sun, 15 August 2010 23:00 Go to next message
Transformed is currently offline TransformedFriend
Messages: 21
Registered: June 2010
Junior Member
Hi @all,

I am having a problem with the use of keywords of OCL as relation-name in my metamodel such that I cant access the other class through that relation name in ATL.

rule If2Element{
	from 
		s : BPEL!If (s.nameIf.oclIsUndefined() and s.condition.oclIsUndefined())
	to 	
		t : XML!Element(
			name <- 'if',
			children <- Sequence{ s.hasElse, s.hasElseIf, s.if}-> flatten()) -- The font of *if* is colored as keyword
}

The class structure of if is like this
If -(inherits)-> Activity
+condition:EsString,
+nameIf:EString,
+halsElse: Else (relation to Else)
+hasElseIf:ElseIf(relation to ElseIf)
+if: Activity (relation to Activity)  

OCL also has if as keyworld and now when I use s.if then if is shown as keyword with colored fonts.

Is there anyway to bypass s.if so that I can access the Activity?

Regards and thanks
Re: [ATL] How to bypass ATL buildin Keyword if it is used as attribute/relation-name in metamodel [message #553040 is a reply to message #553000] Mon, 16 August 2010 08:15 Go to previous message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
s."if"
Previous Topic:[QVT-R] Specifications
Next Topic:[ATL] How to generate customized name spaces in an element?
Goto Forum:
  


Current Time: Fri Mar 29 10:55:29 GMT 2024

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

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

Back to the top