Skip to content

Commit

Permalink
workflows: support set custom status (#639)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Martinez <[email protected]>
  • Loading branch information
famarting authored Oct 30, 2024
1 parent e317f06 commit 516684c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions workflow/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ func (wfc *WorkflowContext) IsReplaying() bool {
return wfc.orchestrationContext.IsReplaying
}

// SetCustomStatus sets custom status to the workflow context
func (wfc *WorkflowContext) SetCustomStatus(cs string) {
wfc.orchestrationContext.SetCustomStatus(cs)
}

// CallActivity returns a completable task for a given activity.
// You must call Await(output any) on the returned Task to block the workflow and wait for the task to complete.
// The value passed to the Await method must be a pointer or can be nil to ignore the returned value.
Expand Down

0 comments on commit 516684c

Please sign in to comment.