Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Oliver F. on September 10, 2009, 07:34:50 pm

Title: Transformation language needs a loop statement
Post by: Oliver F. on September 10, 2009, 07:34:50 pm
Having worked a lot with the transformation templates I found a high need for iterative language constructs to write loop statements.
Actually there is none.
Under linear conditions this is not obvious, it becomes important when using the EXEC_ADD_IN macro which might deliver multiple values eg. as a comma separated list to process. Classifiers eg. might have several tagged values which values are used to process attributes or parent elements.
Actually such a parsing can be done recursively with custom templates I did this yesterday but it is tedious.

So a loop statement would be a rather good idea.

Olive
Title: Re: Transformation language needs a loop statement
Post by: Makulik on September 10, 2009, 08:14:48 pm
Get's my vote!
I also came over situations where this could have been helpful.

Günther
Title: Re: Transformation language needs a loop statement
Post by: «Midnight» on September 10, 2009, 09:09:31 pm
Yes, very much so!

There are some situations where a workaround can be found or another approach produces reasonable results. But sometimes there just does not seem to be a way to get the needed results. Some 'standard' control paradigms should appear in any scripting (or other programming) language. Loop control is certainly one of them.
Title: Re: Transformation language needs a loop statement
Post by: salayande on September 11, 2009, 04:54:23 am
Gets my vote too.

Title: Re: Transformation language needs a loop statement
Post by: Paolo F Cantoni on September 11, 2009, 10:52:10 am
Absolutely!

Paolo