Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Java code > Reverse engineering legacy Java code > Mapping information > Mapping information for state diagram generation > State diagram mappings - submachine state (Java code)
  
State diagram mappings - submachine state (Java code)
ACS generates code for the State Diagrams that are referenced by Submachine States when the following conditions are true:
The Submachine references a State Machine that is part of the same Class as the referencing Submachine.
Transitions enter and exit the Submachine through its Connection Point References.
* 
Note that Modeler creates a Connection Point Reference for each Entry State and Exist State the referenced State Machine owns. On a State Diagram, you can populate a Submachine's Connection Point References: right-click the Submachine, point to Populate, and then click Connection Point References.