Use of "min" and "max" expressions in action states, in activity diagrams
Hello,
In Diplodocus modeling, the syntax analyzer does not raise exceptions when the expressions "min" and "max" are used in an action state in activity diagrams, even if they are not defined. However, the code generation fails (see "Mapping" tab in the model in attachment, then click on "Syntax analysis" and "Generate code for simulation").
Furthermore, if : (1) these "min" and "max" expressions are used in an action state inside a loop and (2) at least one of their arguments is the variable modified by the action state (e.g., "n = max(2,n)" or "n = min(4,n+1)"), the code generation is performed (see "Mapping_withLoop" tab in the model in attachment, then click on "Syntax analysis" and "Generate code for simulation"). According to the "Task variables" tab in the simulator, these "min" and "max" expressions behave as expected, respectively returning the minimum and maximum values between their arguments.
Cheers, Bastien