workflows

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package workflows provides minimal registry types for workflow ent templates

Package workflows provides minimal registry types for workflow ent templates

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAssignmentContextBuilder

func RegisterAssignmentContextBuilder(builder AssignmentContextBuilder)

RegisterAssignmentContextBuilder registers the assignment context builder

func RegisterCELContextBuilder

func RegisterCELContextBuilder(builder CELContextBuilder)

RegisterCELContextBuilder registers a CEL context builder

func RegisterObjectRefQueryBuilder

func RegisterObjectRefQueryBuilder(builder ObjectRefQueryBuilder)

RegisterObjectRefQueryBuilder registers a WorkflowObjectRef query builder

func RegisterObjectRefResolver

func RegisterObjectRefResolver(resolver ObjectRefResolver)

RegisterObjectRefResolver registers a WorkflowObjectRef resolver

Types

type AssignmentContextBuilder

type AssignmentContextBuilder func(ctx context.Context, client *generated.Client, instanceID string) (map[string]any, error)

AssignmentContextBuilder builds runtime assignment context for CEL evaluation

func GetAssignmentContextBuilder

func GetAssignmentContextBuilder() AssignmentContextBuilder

GetAssignmentContextBuilder returns the registered assignment context builder, if any.

type CELContextBuilder

type CELContextBuilder func(obj *Object, changedFields []string, changedEdges []string, addedIDs, removedIDs map[string][]string, eventType, userID string) map[string]any

CELContextBuilder builds CEL activation variables for a workflow Object

type Object

type Object struct {
	ID   string
	Type enums.WorkflowObjectType
	Node any
}

Object captures the workflow target and its entity

type ObjectRefQueryBuilder

ObjectRefQueryBuilder builds a WorkflowObjectRef query for a workflow Object

type ObjectRefResolver

type ObjectRefResolver func(*generated.WorkflowObjectRef) (*Object, bool)

ObjectRefResolver maps a WorkflowObjectRef to a workflow Object

Jump to

Keyboard shortcuts

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