Skip to content

Commit 516684c

Browse files
authored
workflows: support set custom status (#639)
Signed-off-by: Fabian Martinez <[email protected]>
1 parent e317f06 commit 516684c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

workflow/context.go

+5
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ func (wfc *WorkflowContext) IsReplaying() bool {
5050
return wfc.orchestrationContext.IsReplaying
5151
}
5252

53+
// SetCustomStatus sets custom status to the workflow context
54+
func (wfc *WorkflowContext) SetCustomStatus(cs string) {
55+
wfc.orchestrationContext.SetCustomStatus(cs)
56+
}
57+
5358
// CallActivity returns a completable task for a given activity.
5459
// You must call Await(output any) on the returned Task to block the workflow and wait for the task to complete.
5560
// The value passed to the Await method must be a pointer or can be nil to ignore the returned value.

0 commit comments

Comments
 (0)