A simple Finite State Machine example - implementation
((status + "-") + to))
This works because the context is maintained for the duration of the story. This FSM would not maintain the state across stories, for instance... see below.
i can't persist this because now it won't reset
//$when fsm1.*(id) => ctx.persisted(kind="fsm1", id=id)
implement a better FSM with persistence across stories
You need to log in to post a comment!