From 516684c202610fdbd7fd50409430497a4fac54d3 Mon Sep 17 00:00:00 2001 From: Fabian Martinez <46371672+famarting@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:06:20 +0100 Subject: [PATCH] workflows: support set custom status (#639) Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com> --- workflow/context.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/workflow/context.go b/workflow/context.go index 7bec4f25..5bf77cbe 100644 --- a/workflow/context.go +++ b/workflow/context.go @@ -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.