Flexflow.Transition behaviour (flexflow v0.1.4) View Source
Transition
Link to this section Summary
Link to this section Types
Specs
edge() :: Graph.Edge.t()
Specs
Specs
state()
Transition state
[:created, :initial]
Specs
t() :: %Flexflow.Transition{ __attributes__: keyword(), context: Flexflow.Context.t(), from: Flexflow.key_normalize(), module: module(), name: Flexflow.name(), opts: Flexflow.node_opts(), state: state(), to: Flexflow.key_normalize() }
Link to this section Functions
Specs
enter(t(), Flexflow.Node.t(), Flexflow.Process.t()) :: {:ok, Flexflow.Process.t()} | {:error, atom()}
Specs
new({Flexflow.key(), {Flexflow.key(), Flexflow.key()}, Flexflow.node_opts()}, [ Flexflow.Node.t() ]) :: edge_tuple()
Specs
validate([edge_tuple()]) :: [edge_tuple()]
Link to this section Callbacks
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