runs

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: AGPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunContextTopLevels = []string{
	"run",
	"child",
	"parent",
	"contact",
	"input",
	"results",
	"trigger",
	"legacy_extra",
}

RunContextTopLevels are the allowed top-level variables for expression evaluations

Functions

func NewRun

func NewRun(session flows.Session, flow flows.Flow, parent flows.FlowRun) flows.FlowRun

NewRun initializes a new context and flow run for the passed in flow and contact

func NewStep added in v0.24.0

func NewStep(node flows.Node, arrivedOn time.Time) flows.Step

NewStep creates a new step

func ReadRun

func ReadRun(session flows.Session, data json.RawMessage) (flows.FlowRun, error)

ReadRun decodes a run from the passed in JSON. Parent run UUID is returned separately as the run in question might be loaded yet from the session.

func ReadRunSummary added in v0.8.0

func ReadRunSummary(sessionAssets flows.SessionAssets, data json.RawMessage, missing assets.MissingCallback) (flows.RunSummary, error)

ReadRunSummary reads a run summary from the given JSON

Types

type Path added in v0.9.2

type Path []flows.Step

func (Path) Describe added in v0.10.1

func (p Path) Describe() string

Describe returns a representation of this type for error messages

func (Path) Index added in v0.9.2

func (p Path) Index(index int) types.XValue

func (Path) Length added in v0.9.2

func (p Path) Length() int

func (Path) Reduce added in v0.9.2

func (p Path) Reduce(env utils.Environment) types.XPrimitive

func (Path) ToXJSON added in v0.9.2

func (p Path) ToXJSON(env utils.Environment) types.XText

Jump to

Keyboard shortcuts

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