task

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	ID string

	WorkflowInstance *core.WorkflowInstance

	Event history.Event
}

type Kind

type Kind int
const (
	Continuation Kind
)

type Workflow

type Workflow struct {
	// ID is an identifier for this task. It's set by the backend
	ID string

	// WorkflowInstance is the workflow instance that this task is for
	WorkflowInstance *core.WorkflowInstance

	// Kind defines what kind of task this is. A Continuation task only contains
	// new events and not the full history. By default the history is included.
	Kind Kind

	// History are the events that have been executed so far
	History []history.Event

	// NewEvents are new events since the last task execution
	NewEvents []history.Event
}

Jump to

Keyboard shortcuts

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