Hi All
I am having a little look at the EASL code generation in EA, specifically C# code from a sequence diagram. The User Guide is a little scant, but implies that a Loop combined fragment will generate an iteration, and indeed it does.
Below is an extract from the code generation script
$guard = %EASL_GET("Property", $guardedAction, "Guard")%
$expression = %EASL_GET("Property", $guard, "Expression")%
$upper = %EASL_GET("Property", $guard, "Upper")%
$lower = %EASL_GET("Property", $guard, "Lower")%
Now, the EASL Property "Expression" can be set by using the Properties of the Combined Fragment, and this setting comes out in the generated code. BUT, if we look a little further into the code generation script ...
%if $expression != ""%
while ($expression)\n
%elseIf $lower != ""%
for ($lower; $upper; ; )\n
%else%
while (true)\n
%endIf%
We find the $expression (if set) will always generate a while loop ... perfectly OK.
However, how do we get a for loop?
The above script implies, that if no expression is set AND EASL property "lower" is set then we get a for loop
Does anyone know how set a value for the EASL property lower ... what does this correspond to on the combined fragment. I can find no property, or tagged value
Cheers
Phil