If you are talking about an
Application Processor, I think I can make a recommendation, but are you interested in these things running simultaneously from the same process? That would require a different approach than what i have done in Perl.
I wrote a provisioning system in Perl whose main process loads a state machine from a config file which names all the states, entry and exit points, branches, etc. The config file is a Data::Dumper style hash with the contents, and can loaded and run dynamically.
Is this in the ballpark? If so, I can explain further
DrSax