core

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseWorkflow

type BaseWorkflow struct {
	StateVariables map[string]string
	WorkflowState  *domain.Workflow
}

BaseWorkflow holds common workflow state and provides shared setup logic.

func (*BaseWorkflow) Setup

func (b *BaseWorkflow) Setup(wf *domain.Workflow)

Setup initializes the base workflow with the given workflow instance and parses state variables from JSON, if present.

type Workflow added in v1.1.1

type Workflow interface {
	StateTransitions() map[string][]string // map of state name -> list of next state names
	InitialState() string
	Description() string
	Setup(wf *domain.Workflow)
	GetWorkflowData() *domain.Workflow
	GetStateVariables() map[string]string
	GetAllStates() []models.WorkflowState // where to start
	GetRetryConfig() models.RetryConfig
}

Workflow is the interface that all workflows must implement.

Jump to

Keyboard shortcuts

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