Question

I want to generate C++ code from a State Diagram (Harrel FSM) and I'm wondering whether this is possible with EA, and if, how to go about generating code.

I've followed the example at Sparx: Generate From Behavioral Models, but when I look at the generated code it consists of skeleton code that does not include any state transitions etc. I've seen an example of assumedly code generated by EA in their online help, so it does seem to be possible, but I cannot find any concrete examples of how.

Could anyone give me some direction? Thanks.

Was it helpful?

Solution

Are you able to generate behavioral code from the examples in the EAExample model?

If not, you'll need to confirm which edition of Enterprise Architect you are using. Code generation from behavioral models such as State Machines is only available in the Business and Software Engineering, Systems Engineering and Ultimate editions of EA.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top