|[solved] helper call two sentences ?? [message #1364108]
||Sun, 18 May 2014 10:21
| Gianni Rosa
Registered: August 2013
I am writing a complex ATL transformation and I need your help, in particular I have to resolve an OCL like Expression in a couple name value (ex. Person = objPerson). For do that, I have written a recoursive helper thathas a parameter of type OclExpression and resolve name and value depending on its Type.
My problem now arises when the type is of ObjectTemplateExp, because in this case I need to update the result string with the value and call the rule that creates new Element and continue to evaluate the sentence.
if (s.oclIsKindOf(JTLMM!ObjectTemplateExp)) then thisModule.valueString.concat(s.name) --helper with result value thisModule.ObjTemplateExpr2Pattern(s) --rule creates new Element
Obviously, I can do that in ATL, so, how can I resolve this issue?
I am probably wrong approach, any help will be appreciated!
[Updated on: Tue, 20 May 2014 13:31]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.06447 seconds