Documentation
¶
Overview ¶
Package workflow implements a workflow engine that manages business processes.
A workflow consists of an orchestrated and repeatable pattern of business activity enabled by the systematic organization of resources into processes that transform data and process information.
Internally, single workflow is described as a graph, a directed acyclic graph or DAG.
Example
workflow1 := workflow.NewWorkflow("My Workflow", "This is an example of workflow")
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Workflow ¶
type Workflow struct { // Unique ID for this workflow engine. // Used for traceability, metrics, monitoring, etc ... ID uuid.UUID // Name of this workflow engine. Name string // Description of this worflow and its purpose. Description string // contains filtered or unexported fields }
Workflow type represents a workflow engine.
func NewWorkflow ¶
NewWorkflow creates a new workflow engine given a name and description.
It generates an unique internal ID which will be used to identify this concrete workflow engine among others in order to support traceability, metrics, monitoring, etc ...
The workflow is defined by a graph, a directed acyclic graph or DAG. This graph will describe the inner processes belonging to it.