Take a look at Workflow to see if it's a match with your needs.
In reply to Re: Are state machines just for parsing? by simonm in thread Are state machines just for parsing? by samtregar