Is there any alternative to Apache Commons SCXML?

4.1k views Asked by At

I'm looking for a good and universal state machine and so far I've found SCXML. It's really simple to use (I mean the configuration) but the source code is archaic - there is no type safety and all collections are raw types. I don't have to say how difficult is to find what actually is stored in those collections. So is there any modern alternative?

2

There are 2 answers

1
Chris Hawkins On

I have used two State Machine products, where I define a product as something that takes actually creates portions of an operational program.

1) QP ( at http://www.state-machine.com/ ). I used this in 2006 in a Windows C++ communications product. Worked very well, but has a limited number of target platforms. Overall this was the best product, but it can cost money depending on how you use it.

2) State Machine Compiler ( at http://smc.sourceforge.net/ ). I am using this today in an iOS product ( http://dr.edgemoor.com ) written in Objective-C. I came across your question while researching alternatives to SMC. I have not found any.

SMC is less well documented, but also simpler in scope. And it big strength is that it generates code for a number of languages, more than any other solution I have found.

2
Zhaofeng_Chen On

In java, Apache Commons SCXML may be the best.But you can look up something about scxml4flex, http://code.google.com/p/scxml4flex/