defn

package
v0.0.0-...-af92ede Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assignment

type Assignment struct {
	ConnectedNode
	AssignmentItems []*AssignmentItem `json:"assignmentItems"`
}

Assignment the assignment node definition.

type AssignmentItem

type AssignmentItem struct {
	AssignTo string `json:"assignTo"`
	Operator string `json:"operator"`
	Value    string `json:"value"`
}

AssignmentItem the assignment item.

type ConnectedNode

type ConnectedNode struct {
	Node
	Connector string `json:"connector"`
}

ConnectedNode the node with single connector.

type Decision

type Decision struct {
	Node
	DecisionRules         []*DecisionRule `json:"decisionRules"`
	DefaultConnector      string          `json:"defaultConnector"`
	DefaultConnectorLabel string          `json:"defaultConnectorLabel"`
}

Decision the decision node definition.

type DecisionRule

type DecisionRule struct {
	ConnectedNode
	Criteria string `json:"criteria"`
}

DecisionRule the rule of a decision.

type FlowDef

type FlowDef struct {
	Label       string `json:"label"`
	Description string `json:"description"`
	Name        string `json:"name"`
	Version     string `json:"version"`

	StartElement string `json:"startElement"`

	Variables   []*Variable   `json:"variables"`
	Assignments []*Assignment `json:"assignments"`
	Decisions   []*Decision   `json:"decisions"`
}

FlowDef the Flow definition.

This is the metadata of the execution process, not the runnable part. The execution engine will transpile this structure into the runnable part to do the eventual execution.

type Node

type Node struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

Node the abstract node definition.

type Variable

type Variable struct {
	Node
	DataType     string `json:"dataType"`
	DefaultValue string `json:"defaultValue"`
}

Variable the variable definition.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL