# `Jidoka.Operation.Source.Workflow`
[🔗](https://github.com/agentjido/jidoka/blob/v0.9.0/lib/jidoka/operation/source/workflow.ex#L1)

Operation source for deterministic Jidoka workflows.

The model sees one operation. The workflow module owns the deterministic
step graph behind that operation. Sources can opt into async execution for
independent workflow steps.

# `forward_context`

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

# `result_mode`

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

# `t`

```elixir
@type t() :: %Jidoka.Operation.Source.Workflow{
  async: boolean(),
  definition: Jidoka.Workflow.Spec.t(),
  description: nil | binary(),
  forward_context: forward_context(),
  idempotency: (((:pure | :idempotent) | :dedupe) | :reconcile) | :unsafe_once,
  max_concurrency: pos_integer(),
  metadata: map(),
  name: binary(),
  result: :output | :structured,
  timeout: pos_integer(),
  workflow: module()
}
```

# `new`

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

Builds a deterministic workflow operation source.

# `new!`

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

Builds a workflow source and raises if the settings are invalid.

---

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