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

Transition

Link to this section Summary

Types

Transition state

t()

Callbacks

Invoked when process is started

Module name

Link to this section Types

Specs

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

Specs

edge_map() :: %{required(edge()) => t()}

Specs

state()

Transition state

[:waiting, :initial, :active, :suspended, :terminated, :completed]

Specs

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

Link to this section Functions

Specs

define(
  {Flexflow.key(), {Flexflow.key(), Flexflow.key()}, keyword()},
  Flexflow.nodes()
) :: {edge(), t()}

Specs

validate(edge_map()) :: edge_map()

Link to this section Callbacks

Specs

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

Invoked when process is started

Specs

name() :: Flexflow.name()

Module name