Book a Demo

Author Topic: Code generation: collection "DerivedTransitions" always empty  (Read 1988 times)

JoL

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
I used to generate C++ code from my EA StateMachines for several years. Until recently I worked on EA13.
Since I switched to EA 16.1 (64bit) code generation changed its behaviour for the collection DerivedTranstions or DerivedOutptutTransitions.

For example, in the Code Template "StateMachine" there's a line which always creates an empty list.
Quote
$sTransitions = %EASLList="StateEnumerate" @separator=",\n" @indent="\t" @owner=$StateMachineGUID @collection="DerivedTransitions"%

The same line in EA13 creates a list with all transitions that have a valid effect as documented in https://sparxsystems.com/enterprise_architect_user_guide/16.0/modeling_domains/easl_collections.html - StateMachine - DerivedTransitions

If I change that line from "DerivedTransitions" to "Transitions" it returns the list of all transitions. It seems there are quite a few side effects, since the generated code of EA16 misses quiet a bit of code compared to the code generated by EA13.

Is there anything I can change within EA16 or my model to get that fixed?
« Last Edit: March 21, 2023, 09:41:27 pm by JoL »