View Source Fountainedge.State (Fountainedge Workflow Engine v1.0.8)

Tracks the current progression of the workflow (stateful.)

Fountainedge.Workflow saves its status in a state list. Each active node receives a state. In linear mode, only one state is in the state list. Upon leaving a forking node, a state is created with a unique token for each out edge. Nested forks will result in multiple tokens being carried.

Link to this section Summary



Workflow status structure.

Link to this section Types

@type t() :: %Fountainedge.State{id: integer(), tokens: [Fountainedge.Token.t()]}

Workflow status structure.

  • :id - Identifier of the active Fountainedge.Node.
  • :tokens - List of tokens carried by the active node.