Sig.Schemas.Workflow (Sig v0.1.0)

Copy Markdown View Source

A persisted workflow definition.

Created with Sig.create_workflow/1.

Fields

  • :name - the workflow name.
  • :description - optional description.
  • :params - workflow-level params, merged into every node's params.
  • :context - workflow-level context, shared by every node.
  • :nodes - the node graph, normalized as described in Sig.Flow.
  • :status - "active", "suspended" or "stopped".

Summary

Types

t()

@type t() :: %Sig.Schemas.Workflow{
  __meta__: term(),
  context: map(),
  description: String.t() | nil,
  executions:
    [Sig.Schemas.WorkflowExecution.t()] | Ecto.Association.NotLoaded.t(),
  id: String.t() | nil,
  inserted_at: DateTime.t() | nil,
  name: String.t() | nil,
  nodes: map(),
  params: map(),
  status: String.t(),
  updated_at: DateTime.t() | nil
}