Toolbox.Workflow.Instance (toolbox v1.1.0)

Workflow instance is simple struct which keeps state if individual workflow instances. Workflow updates its status/state via defined callbacks during workflow transitions.

Link to this section Summary

Link to this section Types

@type t() :: %Toolbox.Workflow.Instance{
  history: [map()],
  id: String.t(),
  last_update: integer(),
  next_possible_transition_timestamp: integer() | nil,
  possible_transitions: [map()],
  state: map(),
  status: :none | Toolbox.Workflow.status(),
  terminated?: boolean()
}