You can generate code either as part of the normal project code generation process, via a selection in the Project menu, or directly from the state machine diagram context menu.
They describe all of the possible states that a particular object can get into and how the object's state changes as a result of events that reach the object.
Intuitive drag and drop interface with precision drawing and control. While activity diagram shows a flow of control from activity to activity across number of objects involved in execution of those activities, state diagram shows flow of control from state to state within single object. Click on 'Shapes' in the upper-left corner of your window and check “UML. State machine diagram tool free io can import.