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

Models a workflow (stateful.)

The workflow has a Fountainedge.Schema, which defines its nodes and edges.

The status of the flowchart is saved in a Fountainedge.State list, which tracks current nodes and any forking tokens.

Link to this section Summary



Workflow structure.


Initialises a workflow.

Link to this section Types

@type t() :: %Fountainedge.Workflow{
  schema: Fountainedge.Schema.t(),
  states: [Fountainedge.State.t()] | []

Workflow structure.

Link to this section Functions

@spec initialize(Fountainedge.Schema.t()) :: t()

Initialises a workflow.

Will set the current state to the initial node specified in the schema.