The following local termination rules apply to Or states:
A leaf state is completed after finishing its entry action.
The following local termination rules apply to component states:
An outgoing null transition from an And state is activated only if all of its components are completed.
You can use the IS_COMPLETED() macro in a statechart to test whether a state is completed. Completion means that any of the conditions for local termination described in the previous sections are true. The macro works the same for both flat and reusable implementations of statecharts.
The CG::Class::IsCompletedForAllStates property specifies whether the IS_COMPLETED() macro can be used for all kinds of states. The default value of Cleared means that the macro can be used only for states that have a final activity. Checked means that it can be used for all states.