I'm rewriting a state machine processor for a system at my company. The primary goal is to implement declarative JSON based language for describing state machines so that we have a higher level way of thinking than the current, purely-java solution. The second, more challenging goal is to abstract the components of the system such that the initial implementation can be single node, but getting enough of the correct interface definitions such that it could be refactored to support distributed execution and fault tolerance.<p>Since I've not written one of these before, I'm rooting around the web looking for reference implementations / papers / boxes-and-arrows that could provide inspiration. Any thoughts on what to read?
I found related discussion on Amazon State Language: <a href="https://news.ycombinator.com/item?id=13093129" rel="nofollow">https://news.ycombinator.com/item?id=13093129</a>