event

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

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.0.2

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