Flexflow.Transition behaviour (flexflow v0.1.3) View Source

Transition

Link to this section Summary

Types

Transition state

t()

Callbacks

Invoked when process is enter this transition

Invoked when process is started

Module name

Link to this section Types

Specs

edge() :: Graph.Edge.t()

Specs

edge_tuple() :: {edge(), t()}

Specs

state()

Transition state

[:created, :initial]

Specs

t() :: %Flexflow.Transition{
  context: Flexflow.Context.t(),
  from: Flexflow.key_normalize(),
  module: module(),
  name: Flexflow.name(),
  opts: keyword(),
  state: state(),
  to: Flexflow.key_normalize()
}

Link to this section Functions

Link to this function

enter(transition, node, process)

View Source

Specs

enter(t(), Flexflow.Node.t(), Flexflow.Process.t()) ::
  {:ok, Flexflow.Process.t()} | {:error, atom()}

Specs

Specs

validate([edge_tuple()]) :: [edge_tuple()]

Link to this section Callbacks

Link to this callback

handle_enter(t, arg2, arg3)

View Source

Specs

handle_enter(t(), Flexflow.Node.t(), Flexflow.Process.t()) :: :pass | :stop

Invoked when process is enter this transition

Specs

init(t(), Flexflow.Process.t()) :: {:ok, t()}

Invoked when process is started

Specs

name() :: Flexflow.name()

Module name