The all source in the FSM transition should not match the current state.
Add example finite state machine.

This is probably way too complicated but it is difficult to go from the very simple (myApp.lua) to something non-trival yet understandable.