Question: what is the difference between state diagram and activity diagram?
Answer: State chart modeling is used to show the sequence of states that an object goes through, the cause the transition from one state to other and the action that result from a state change. Activity diagram is flow of functions without trigger (event) mechanism, state machine is consist of triggered states.