mapper

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDataReqToData

func CreateDataReqToData(specVersion string, createDataReq model.CreateDataReq) (model.Data, error)

func DataToCreateDataReq

func DataToCreateDataReq(data model.Data) model.CreateDataReq

DataToCreateDataReq strips IDs from a persisted Data graph so it can be fed back into createWorkflowInternal as a fresh CreateDataReq (with new IDs to be issued downstream). Used by the workflow clone path.

func GetWorkflowFromDB

func GetWorkflowFromDB(workflowID string) (*model.Workflow, error)

func GetWorkflowFromDBIncludeDeleted

func GetWorkflowFromDBIncludeDeleted(workflowID string) (*model.Workflow, error)

func ResolveCreateSourceType

func ResolveCreateSourceType(specVersion string, createDataReq model.CreateDataReq) (string, string, error)

Types

type WorkflowGraphDiff

type WorkflowGraphDiff struct {
	WorkflowData         model.Data
	TaskGroupsToUpsert   []model.TaskGroupDBModel
	TasksToUpsert        []model.TaskDBModel
	TaskGroupsToSoftDrop []model.TaskGroupDBModel
	TasksToSoftDrop      []model.TaskDBModel
}

func BuildWorkflowGraphDiff

func BuildWorkflowGraphDiff(workflow *model.Workflow, incoming model.Data) (*WorkflowGraphDiff, error)

Jump to

Keyboard shortcuts

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