StateMachines is a project mainly written in ..., it's free.
Different implementation of state machines