# `Sig.Schemas.Workflow`
[🔗](https://github.com/peeeuzin/sig/blob/v0.1.0/lib/sig/schemas/workflow.ex#L1)

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"`.

# `t`

```elixir
@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
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
