View Source Fountainedge.Workflow (Fountainedge v1.0.7)
Models a workflow (stateful.)
The workflow is based on a Fountainedge.Schema
Current nodes of the flowchart are tracked in a list of Fountainedge.State
.
Link to this section Summary
Functions
Initialises a workflow.
Link to this section Types
@type t() :: %Fountainedge.Workflow{ schema: Fountainedge.Schema.t(), states: [Fountainedge.State.t()] | [] }
Workflow structure.
:schema
- TheFountainedge.Schema
.:states
- Workflow status.
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.