in reply to Are state machines just for parsing?
Take a look at Workflow to see if it's a match with your needs.