Too bad the new "Erlang and OTP in Action" book leaves gen_fsm out of scope.<p>Anyway gen_fsm behavior is pretty weak comparing to FSM frameworks I used in C++: no on_entry / on_exit callbacks.<p>Also, I'm not sure you can use gen_fsm sequentially by itself (i.e. without Erlang process).