Documentation
¶
Index ¶
- func CreateChildWorkflowRequest(workflowType string, businessKey string, stateVars map[string]string) models.ChildWorkflowRequest
- func ParseChildWorkflowResults(stateVars map[string]string, key string) (map[string]string, error)
- func SetupLogger(logLevel slog.Leveler)
- func SetupLoggerWithClock(logLevel slog.Leveler, clock core.Clock)
- type App
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChildWorkflowRequest ¶ added in v1.5.0
func CreateChildWorkflowRequest( workflowType string, businessKey string, stateVars map[string]string, ) models.ChildWorkflowRequest
CreateChildWorkflowRequest creates a new child workflow request that can be added to a NextState's ChildWorkflows list
func ParseChildWorkflowResults ¶ added in v1.5.0
ParseChildWorkflowResults parses the child workflow results from a parent workflow's state variables This can be used to extract state variables from completed child workflows
func SetupLogger ¶
Types ¶
type App ¶ added in v1.0.12
type App struct {
DB *sql.DB
Manager *engine.WorkflowManager
WorkflowRegistry map[string]func() core.Workflow
Repos struct {
Workflows *repository.WorkflowRepository
Actions *repository.WorkflowActionRepository
Executors *repository.ExecutorRepository
Definitions *repository.WorkflowDefinitionRepository
Users *repository.UserRepository
}
}
App wires together the workflow engine, repositories, and HTTP server.
func SetupWithClock ¶ added in v1.3.0
SetupWithClock sets up the database, repositories, workflow manager, and HTTP mux.
Click to show internal directories.
Click to hide internal directories.