state_machine v0.1.1 StateMachine.Context

Link to this section Summary

Link to this section Types

Link to this type

t(model)
t(model) :: %StateMachine.Context{
  definition: StateMachine.t(model),
  event: atom(),
  message: any(),
  model: model,
  new_state: atom(),
  old_state: atom(),
  payload: any(),
  status: :init | :impossible | :rejected | :failed | :done
}

Link to this section Functions

Link to this function

build(sm, model)
build(StateMachine.t(model), model) :: t(model) when model: var