Definitively.Domain.StateDefinition (definitively v0.3.0)

Copy Markdown

One FSM state from a workflow program.

Summary

Functions

Returns all supported FSM state types.

Types

state_type()

@type state_type() :: :passive | :active | :approval | :final

t()

@type t() :: %Definitively.Domain.StateDefinition{
  name: atom(),
  node: atom() | nil,
  on: %{required(atom()) => atom()},
  prompt: String.t() | nil,
  type: state_type()
}

Functions

types()

@spec types() :: [state_type()]

Returns all supported FSM state types.