flow

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: LGPL-2.1 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancellationTrace

type CancellationTrace struct {
	FlowId id.Id
}

func (CancellationTrace) TraceInterface

func (t CancellationTrace) TraceInterface()

type CeaseFlowTrace

type CeaseFlowTrace struct{}

func (CeaseFlowTrace) TraceInterface

func (t CeaseFlowTrace) TraceInterface()

type CompletionTrace

type CompletionTrace struct {
	Node schema.FlowNodeInterface
}

func (CompletionTrace) TraceInterface

func (t CompletionTrace) TraceInterface()

type Flow

type Flow struct {
	// contains filtered or unexported fields
}

Flow Represents a flow

func New

func New(definitions *schema.Definitions,
	current flow_node.IFlowNode, tracer tracing.ITracer,
	flowNodeMapping *flow_node.FlowNodeMapping, flowWaitGroup *sync.WaitGroup,
	idGenerator id.IGenerator, actionTransformer flow_node.ActionTransformer,
	locator data.IFlowDataLocator,
) *Flow

New creates a new flow from a flow node

The flow does nothing until it is explicitly started.

func (*Flow) Id

func (flow *Flow) Id() id.Id

func (*Flow) SequenceFlow

func (flow *Flow) SequenceFlow() *sequence_flow.SequenceFlow

func (*Flow) SetTerminate

func (flow *Flow) SetTerminate(terminate flow_node.Terminate)

func (*Flow) Start

func (flow *Flow) Start(ctx context.Context)

Start starts the flow

type LeaveTrace added in v0.3.0

type LeaveTrace struct {
	Node schema.FlowNodeInterface
}

func (LeaveTrace) TraceInterface added in v0.3.0

func (t LeaveTrace) TraceInterface()

type NewFlowTrace

type NewFlowTrace struct {
	FlowId id.Id
}

func (NewFlowTrace) TraceInterface

func (t NewFlowTrace) TraceInterface()

type Retry

type Retry struct {
	// contains filtered or unexported fields
}

Retry describes the retry handler for Flow

func (*Retry) IsContinue

func (r *Retry) IsContinue() bool

func (*Retry) Reset

func (r *Retry) Reset(retries int32)

func (*Retry) Step

func (r *Retry) Step()

Step Attempts += 1

type Snapshot

type Snapshot struct {
	// contains filtered or unexported fields
}

func (*Snapshot) Id

func (s *Snapshot) Id() id.Id

func (*Snapshot) SequenceFlow

func (s *Snapshot) SequenceFlow() *sequence_flow.SequenceFlow

type TerminationTrace

type TerminationTrace struct {
	FlowId id.Id
	Source schema.FlowNodeInterface
}

func (TerminationTrace) TraceInterface

func (t TerminationTrace) TraceInterface()

type Trace

type Trace struct {
	Source schema.FlowNodeInterface
	Flows  []Snapshot
}

func (Trace) TraceInterface

func (t Trace) TraceInterface()

type VisitTrace

type VisitTrace struct {
	Node schema.FlowNodeInterface
}

func (VisitTrace) TraceInterface

func (t VisitTrace) TraceInterface()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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