[erlang-questions] Erlang gen_fsm transition to a new state

Alexander Kuleshov kuleshovmail@REDACTED
Tue May 24 10:10:37 CEST 2011


I have erlang gen_fsm, my first state:

begin({Nick}, _From, State) ->
            {reply, true, next_state, State}.
Then i have:

next_state(_Event, _From, State) ->
        io:format("Test \n")
        {reply, ok, begin, State}.
But i don't seen Test note in shell

How correctly transit to a new state?

Thank you.

More information about the erlang-questions mailing list