ifn

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNode

func NewNode(flowOpCtx *model.FlowOperationalContext, meta model.MetaNode, ctx *model.Context) model.Node

Types

type IFExpression

type IFExpression struct {
	LeftVariableName     string         // Left variable of expression . If empty , Message value will be used .
	LeftVariableIsGlobal bool           // true - if left variable is global
	LeftVariable         model.Variable `json:"-"` // Right variable of expression . Have to be defined , empty value will generate error .
	RightVariable        model.Variable // Right variable of expression . Have to be defined , empty value will generate error .
	Operand              string         // eq , gr , lt
	BooleanOperator      string         // and , or , not
}

type IFExpressions

type IFExpressions struct {
	Expression      []IFExpression
	TrueTransition  model.NodeID
	FalseTransition model.NodeID
}

type Node

type Node struct {
	base.BaseNode
	// contains filtered or unexported fields
}

IF node

func (*Node) LoadNodeConfig

func (node *Node) LoadNodeConfig() error

func (*Node) OnInput

func (node *Node) OnInput(msg *model.Message) ([]model.NodeID, error)

func (*Node) WaitForEvent

func (node *Node) WaitForEvent(responseChannel chan model.ReactorEvent)

Jump to

Keyboard shortcuts

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