Skip to main content

What does the Candidate Acceptance Workflow Definition look like?

workflows/accept.go

func Accept(ctx workflow.Context, input *AcceptWorkflowInput) (*AcceptWorkflowResult, error) {
err := emailCandidate(ctx, input)
if err != nil {
return &AcceptWorkflowResult{}, err
}

submission, err := waitForSubmission(ctx)

result := AcceptWorkflowResult(*submission)
return &result, err
}

Swim lane diagram of the Candidate Acceptance Child Workflow Execution