Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Denis Gleeson on April 12, 2012, 02:59:00 am

Title: Help with code generation from state machine.
Post by: Denis Gleeson on April 12, 2012, 02:59:00 am
Hello All

I'm new to this, so apologies if I'm missing something obvious

I'm interested in generating C++ code (Any code would be good) from a state machine specification of a class method.

I made a project, a view, a package and a class in the package. I created a method in the class called PhoneCall()

Now I can create code for this and I get a .cpp and .h. All good so far

Next I create a state machine. I have no specific link between state names or transitions and my method names.

I can place the state machine under the class in the Project Browser.

But how do I generate code for my state machine inside the code template I get for PhoneCall()?

EA homepage suggests this is possible:
http://www.sparxsystems.com/enterprise_architect_user_guide/software_development/code_generation___state_machin.html


Thanks for any help in advance

Denis