services

package
v1.1.1039 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AbortTypeActivity    = iota // AbortTypeActivity signifies an activity is being aborted
	AbortTypeServiceTask = iota // AbortTypeServiceTask signifies a service task is being aborted
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortFunc added in v1.0.251

type AbortFunc func(ctx context.Context, abort AbortType, state *model.WorkflowState) (bool, error)

AbortFunc is the callback function type called when a workflow object aborts.

type AbortType added in v1.0.251

type AbortType int

AbortType represents the type of termination being handled by the abort function

type CompleteActivityFunc added in v1.0.235

type CompleteActivityFunc func(ctx context.Context, state *model.WorkflowState) error

CompleteActivityFunc is the callback function type which generates complete activity events.

type CompleteActivityProcessorFunc added in v1.0.215

type CompleteActivityProcessorFunc func(ctx context.Context, activity *model.WorkflowState) error

CompleteActivityProcessorFunc is the callback function type fired when an activity completes.

type CompleteJobProcessorFunc

type CompleteJobProcessorFunc func(ctx context.Context, job *model.WorkflowState) error

CompleteJobProcessorFunc is the callback function type for completed tasks.

type EventProcessorFunc

type EventProcessorFunc func(ctx context.Context, newActivityID string, traversal *model.WorkflowState, traverseOnly bool) error

EventProcessorFunc is the callback function type for processing workflow activities.

type LaunchFunc added in v1.0.215

type LaunchFunc func(ctx context.Context, state *model.WorkflowState) error

LaunchFunc is the callback function type used to start child workflows.

type MessageCompleteProcessorFunc

type MessageCompleteProcessorFunc func(ctx context.Context, state *model.WorkflowState) error

MessageCompleteProcessorFunc is the callback function type for completed messages.

type MessageProcessorFunc added in v1.0.224

type MessageProcessorFunc func(ctx context.Context, state *model.WorkflowState, execution *model.Execution, due int64) (bool, int, error)

MessageProcessorFunc is the callback function type used to create new workflow instances based on a timer.

type ProcessCompleteProcessorFunc added in v1.0.427

type ProcessCompleteProcessorFunc func(ctx context.Context, activity *model.WorkflowState) error

ProcessCompleteProcessorFunc is the callback for closing workflow processes.

type TraversalFunc added in v0.1.181

type TraversalFunc func(ctx context.Context, pr *model.ProcessInstance, trackingId common.TrackingID, outbound *model.Targets, el map[string]*model.Element, state *model.WorkflowState) error

TraversalFunc is the callback function type used to handle traversals.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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