Flexflow.State behaviour (flexflow v0.2.0) View Source

State

Link to this section Summary

Link to this section Types

Specs

action_result() :: :ok | {:ok, t()} | {:ok, term()} | {:error, term()}

Specs

options() :: Keyword.t()

Specs

t() :: %Flexflow.State{
  __in_edges__: [Flexflow.state_key()],
  __opts__: options(),
  __out_edges__: [Flexflow.state_key()],
  context: Flexflow.Context.t(),
  module: module(),
  name: Flexflow.name(),
  type: type()
}

Specs

type() :: :bypass | :end | :start

Link to this section Functions

Specs

end?(t()) :: boolean()

Specs

Specs

key(t()) :: Flexflow.state_key()

Specs

Link to this function

new_name(name, process_name)

View Source
Link to this function

normalize_state_key(arg, states, process_name)

View Source

Specs

start?(t()) :: boolean()

Specs

validate([t()]) :: [t()]

Link to this section Callbacks

Specs

graphviz_attribute() :: keyword()

Specs

Link to this callback

handle_event(arg1, term, t, arg4)

View Source

Specs

Specs

Specs

Specs

name() :: Flexflow.name()

Module name

Specs

type() :: type()

Specs

validate(t(), Flexflow.Process.t()) :: :ok

Invoked after compile, return :ok if valid