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

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


Hello,

Thank you for reply.

I do in

I have erlang gen_fsm, my first state:

begin({Nick}, _From, State) ->
           gen_fsm:send_event({global, State#state.id}, {start, Nick}),
           {reply, true, next_state, State}.
Then i have:

next_state({start, Nick}, State) ->
       io:format("Test \n"),
       {reply, ok, begin, State}.

But it's doesn't work.



More information about the erlang-questions mailing list