Jidoka.Operation.Source.Workflow (Jidoka v0.8.0-beta.1)

Copy Markdown View Source

Operation source for deterministic Jidoka workflows.

The model sees one operation. The workflow module owns the deterministic ordered work behind that operation.

Summary

Types

forward_context()

@type forward_context() ::
  :public
  | :none
  | {:only, [atom() | String.t()]}
  | {:except, [atom() | String.t()]}

result_mode()

@type result_mode() :: :output | :structured

t()

@type t() :: %Jidoka.Operation.Source.Workflow{
  definition: map(),
  description: String.t() | nil,
  forward_context: forward_context(),
  metadata: map(),
  name: String.t(),
  result: result_mode(),
  timeout: pos_integer(),
  workflow: module()
}

Functions

new(attrs)

@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}

new!(attrs)

@spec new!(keyword() | map()) :: t()