@@ -51,7 +51,7 @@ type systemDatabase interface {
5151 // Steps
5252 recordOperationResult (ctx context.Context , input recordOperationResultDBInput ) error
5353 checkOperationExecution (ctx context.Context , input checkOperationExecutionDBInput ) (* recordedResult , error )
54- getWorkflowSteps (ctx context.Context , input getWorkflowStepsInput ) ([]StepInfo , error )
54+ getWorkflowSteps (ctx context.Context , input getWorkflowStepsInput ) ([]stepInfo , error )
5555
5656 // Communication (special steps)
5757 send (ctx context.Context , input WorkflowSendInput ) error
@@ -1238,8 +1238,8 @@ type recordChildWorkflowDBInput struct {
12381238
12391239func (s * sysDB ) recordChildWorkflow (ctx context.Context , input recordChildWorkflowDBInput ) error {
12401240 query := fmt .Sprintf (`INSERT INTO %s.operation_outputs
1241- (workflow_uuid, function_id, function_name, child_workflow_id, output )
1242- VALUES ($1, $2, $3, $4, '' )` , pgx.Identifier {s .schema }.Sanitize ())
1241+ (workflow_uuid, function_id, function_name, child_workflow_id)
1242+ VALUES ($1, $2, $3, $4)` , pgx.Identifier {s .schema }.Sanitize ())
12431243
12441244 var commandTag pgconn.CommandTag
12451245 var err error
@@ -1415,20 +1415,20 @@ func (s *sysDB) checkOperationExecution(ctx context.Context, input checkOperatio
14151415}
14161416
14171417// StepInfo contains information about a workflow step execution.
1418- type StepInfo struct {
1419- StepID int // The sequential ID of the step within the workflow
1420- StepName string // The name of the step function
1421- Output any // The output returned by the step (if any)
1422- Error error // The error returned by the step (if any)
1423- ChildWorkflowID string // The ID of a child workflow spawned by this step (if applicable)
1418+ type stepInfo struct {
1419+ StepID int // The sequential ID of the step within the workflow
1420+ StepName string // The name of the step function
1421+ Output * string // The output returned by the step (if any)
1422+ Error error // The error returned by the step (if any)
1423+ ChildWorkflowID string // The ID of a child workflow spawned by this step (if applicable)
14241424}
14251425
14261426type getWorkflowStepsInput struct {
14271427 workflowID string
14281428 loadOutput bool
14291429}
14301430
1431- func (s * sysDB ) getWorkflowSteps (ctx context.Context , input getWorkflowStepsInput ) ([]StepInfo , error ) {
1431+ func (s * sysDB ) getWorkflowSteps (ctx context.Context , input getWorkflowStepsInput ) ([]stepInfo , error ) {
14321432 query := fmt .Sprintf (`SELECT function_id, function_name, output, error, child_workflow_id
14331433 FROM %s.operation_outputs
14341434 WHERE workflow_uuid = $1
@@ -1440,9 +1440,9 @@ func (s *sysDB) getWorkflowSteps(ctx context.Context, input getWorkflowStepsInpu
14401440 }
14411441 defer rows .Close ()
14421442
1443- var steps []StepInfo
1443+ var steps []stepInfo
14441444 for rows .Next () {
1445- var step StepInfo
1445+ var step stepInfo
14461446 var outputString * string
14471447 var errorString * string
14481448 var childWorkflowID * string
0 commit comments