Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseWorkflow ¶
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.
Click to show internal directories.
Click to hide internal directories.