event

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: BSD-3-Clause Imports: 1 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CREATED   = "Created"
	COMPLETED = "Completed"
	CANCELLED = "Cancelled"
	FAILED    = "Failed"
	SCHEDULED = "Scheduled"
	SKIPPED   = "Skipped"
	STARTED   = "Started"
	WAITING   = "Waiting"
	UNKNOWN   = "Created"
)
View Source
const FlowEventType = "flowevent"
View Source
const TaskEventType = "taskevent"

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowEvent

type FlowEvent interface {
	// Returns flow name
	FlowName() string
	// Returns flow ID
	FlowID() string
	// Returns current flow status
	FlowStatus() Status
	// Returns input data for flow instance
	FlowInput() map[string]interface{}
	// Returns output data for completed flow instance
	FlowOutput() map[string]interface{}
	// Returns error for failed flow instance
	FlowError() error
	// Returns name of activity calling this flow in case of subflow invocation
	HostTask() HostTask
	// In case of subflow, returns parent flow name
	ParentFlowName() string
	// In case of subflow, returns parent flow ID
	ParentFlowID() string
	// Returns event time
	Time() time.Time
}

FlowEvent provides access to flow instance execution details

type HostTask added in v0.9.4

type HostTask struct {
	// In case of subflow invocation, name and instance id of subflow activity
	TaskName, TaskInstanceId string
}

type Status

type Status string

type TaskEvent

type TaskEvent interface {
	// Returns activity ref
	ActivityRef() string
	// Returns flow name
	FlowName() string
	// Returns flow ID
	FlowID() string
	// Returns task name
	TaskName() string
	// Returns task instance id
	TaskInstanceId() string
	// Returns task type
	TaskType() string
	// Returns task status
	TaskStatus() Status
	// Returns event time
	Time() time.Time
	// Returns task input data
	TaskInput() map[string]interface{}
	// Returns task output data for completed task
	TaskOutput() map[string]interface{}
	// Returns error for failed task
	TaskError() error
}

TaskEvent provides access to task instance execution details

Jump to

Keyboard shortcuts

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