Skip to main content

What does the SSN Trace Workflow Definition look like?

workflows/ssn_trace.go


// SSNTrace is a Workflow Definition that calls for the execution of a single Activity.
// This is executed as a Child Workflow by the main Background Check.
func SSNTrace(ctx workflow.Context, input *SSNTraceWorkflowInput) (*SSNTraceWorkflowResult, error) {
var result activities.SSNTraceResult

ctx = workflow.WithActivityOptions(ctx, workflow.ActivityOptions{
StartToCloseTimeout: time.Minute,
})

f := workflow.ExecuteActivity(ctx, a.SSNTrace, SSNTraceWorkflowInput(*input))

err := f.Get(ctx, &result)
r := SSNTraceWorkflowResult(result)
return &r, err
}

Swim lane diagram of the SSN Trace Child Workflow Execution