workflows

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelExecution

func CancelExecution(ctx context.Context, authService authorization.Authorization, encryptor crypto.Encryptor, organizationID string, registry *registry.Registry, workflowID, executionID uuid.UUID) (*pb.CancelExecutionResponse, error)

func CreateWorkflow

func CreateWorkflow(ctx context.Context, registry *registry.Registry, organizationID string, pbWorkflow *pb.Workflow) (*pb.CreateWorkflowResponse, error)

func DeleteNodeQueueItem

func DeleteNodeQueueItem(ctx context.Context, registry *registry.Registry, workflowID, nodeID, itemID string) (*pb.DeleteNodeQueueItemResponse, error)

func DeleteWorkflow

func DeleteWorkflow(ctx context.Context, registry *registry.Registry, organizationID uuid.UUID, id string) (*pb.DeleteWorkflowResponse, error)

func DescribeWorkflow

func DescribeWorkflow(ctx context.Context, registry *registry.Registry, organizationID string, id string) (*pb.DescribeWorkflowResponse, error)

func EmitNodeEvent

func EmitNodeEvent(
	ctx context.Context,
	orgID uuid.UUID,
	workflowID uuid.UUID,
	nodeID string,
	channel string,
	data map[string]any,
) (*pb.EmitNodeEventResponse, error)

func InvokeNodeExecutionAction

func InvokeNodeExecutionAction(
	ctx context.Context,
	authService authorization.Authorization,
	encryptor crypto.Encryptor,
	registry *registry.Registry,
	orgID uuid.UUID,
	workflowID uuid.UUID,
	executionID uuid.UUID,
	actionName string,
	parameters map[string]any,
) (*pb.InvokeNodeExecutionActionResponse, error)

func InvokeNodeTriggerAction added in v0.0.18

func InvokeNodeTriggerAction(
	ctx context.Context,
	authService authorization.Authorization,
	encryptor crypto.Encryptor,
	registry *registry.Registry,
	orgID uuid.UUID,
	workflowID uuid.UUID,
	nodeID string,
	actionName string,
	parameters map[string]any,
	webhookBaseURL string,
) (*pb.InvokeNodeTriggerActionResponse, error)

func ListChildExecutions

func ListChildExecutions(ctx context.Context, registry *registry.Registry, workflowID, executionID uuid.UUID) (*pb.ListChildExecutionsResponse, error)

func ListEventExecutions

func ListEventExecutions(ctx context.Context, registry *registry.Registry, workflowID, eventID string) (*pb.ListEventExecutionsResponse, error)

func ListNodeEvents

func ListNodeEvents(ctx context.Context, registry *registry.Registry, workflowID uuid.UUID, nodeID string, limit uint32, before *timestamppb.Timestamp) (*pb.ListNodeEventsResponse, error)

func ListNodeExecutions

func ListNodeExecutions(ctx context.Context, registry *registry.Registry, workflowID, nodeID string, pbStates []pb.WorkflowNodeExecution_State, pbResults []pb.WorkflowNodeExecution_Result, limit uint32, before *timestamppb.Timestamp) (*pb.ListNodeExecutionsResponse, error)

func ListNodeQueueItems

func ListNodeQueueItems(ctx context.Context, registry *registry.Registry, workflowID, nodeID string, limit uint32, before *timestamppb.Timestamp) (*pb.ListNodeQueueItemsResponse, error)

func ListWorkflowEvents

func ListWorkflowEvents(ctx context.Context, registry *registry.Registry, workflowID uuid.UUID, limit uint32, before *timestamppb.Timestamp) (*pb.ListWorkflowEventsResponse, error)

func ListWorkflows

func ListWorkflows(ctx context.Context, registry *registry.Registry, organizationID string) (*pb.ListWorkflowsResponse, error)

func NodeExecutionResultReasonToProto

func NodeExecutionResultReasonToProto(reason string) pb.WorkflowNodeExecution_ResultReason

func NodeExecutionResultToProto

func NodeExecutionResultToProto(result string) pb.WorkflowNodeExecution_Result

func NodeExecutionStateToProto

func NodeExecutionStateToProto(state string) pb.WorkflowNodeExecution_State

func ParseWorkflow

func ParseWorkflow(registry *registry.Registry, orgID string, workflow *pb.Workflow) ([]models.Node, []models.Edge, error)

func ProtoToNodeExecutionResult

func ProtoToNodeExecutionResult(result pb.WorkflowNodeExecution_Result) (string, error)

func ProtoToNodeExecutionState

func ProtoToNodeExecutionState(state pb.WorkflowNodeExecution_State) (string, error)

func SerializeNodeExecutions

func SerializeNodeExecutions(executions []models.WorkflowNodeExecution, childExecutions []models.WorkflowNodeExecution) ([]*pb.WorkflowNodeExecution, error)

func SerializeNodeExecutionsForSingleNode

func SerializeNodeExecutionsForSingleNode(node *models.WorkflowNode, executions []models.WorkflowNodeExecution) ([]*pb.WorkflowNodeExecution, error)

func SerializeNodeQueueItems

func SerializeNodeQueueItems(queueItems []models.WorkflowNodeQueueItem) ([]*pb.WorkflowNodeQueueItem, error)

func SerializeWorkflow

func SerializeWorkflow(workflow *models.Workflow, includeStatus bool) (*pb.Workflow, error)

func SerializeWorkflowEvent

func SerializeWorkflowEvent(event models.WorkflowEvent) (*pb.WorkflowEvent, error)

func SerializeWorkflowEvents

func SerializeWorkflowEvents(events []models.WorkflowEvent) ([]*pb.WorkflowEvent, error)

func UpdateWorkflow

func UpdateWorkflow(ctx context.Context, encryptor crypto.Encryptor, registry *registry.Registry, organizationID string, id string, pbWorkflow *pb.Workflow, webhookBaseURL string) (*pb.UpdateWorkflowResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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