branch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecideBranch

Decides the branch to be taken, returns the nodeId of the selected node or an error The branchnode is marked as success. This is used by downstream node to determine if it can be executed All downstream nodes are marked as skipped

func Evaluate

func Evaluate(lValue *core.Primitive, rValue *core.Primitive, op core.ComparisonExpression_Operator) (bool, error)

func Evaluate1

func Evaluate1(lValue *core.Primitive, rValue *core.Literal, op core.ComparisonExpression_Operator) (bool, error)

func Evaluate2

func Evaluate2(lValue *core.Literal, rValue *core.Primitive, op core.ComparisonExpression_Operator) (bool, error)

func EvaluateBooleanExpression

func EvaluateBooleanExpression(expr *core.BooleanExpression, nodeInputs *handler.Data) (bool, error)

func EvaluateComparison

func EvaluateComparison(expr *core.ComparisonExpression, nodeInputs *handler.Data) (bool, error)

func EvaluateIfBlock

func EvaluateIfBlock(block v1alpha1.ExecutableIfBlock, nodeInputs *handler.Data, skippedNodeIds []*v1alpha1.NodeID) (*v1alpha1.NodeID, []*v1alpha1.NodeID, error)

func EvaluateLiterals

func EvaluateLiterals(lValue *core.Literal, rValue *core.Literal, op core.ComparisonExpression_Operator) (bool, error)

func New

func New(executor executors.Node, eventSink events.EventSink, scope promutils.Scope) handler.IFace

Types

This section is empty.

Jump to

Keyboard shortcuts

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