I'm looking for an example of a simple FSM implemented in Erlang using the gen_fsm from OTP.
Asked
Active
Viewed 3,137 times
2 Answers
8
I found this tutorial really helpful -
http://spawnlink.com/articles/an-introduction-to-gen_fsm-erlybanks-atm/index.html

Roger Lipscombe
- 89,048
- 55
- 235
- 380

spkhaira
- 821
- 7
- 18
5
You can also refer to the official erlang documentation.
http://www.erlang.org/doc/design_principles/fsm.html
The locked door example reported in the link is quite easy to understand

the_dark_destructor
- 668
- 8
- 19