We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78b3560 commit f612c96Copy full SHA for f612c96
workflow/workflow.go
@@ -28,6 +28,22 @@ func (w *WorkflowContext) GetInput(v any) error {
28
return w.oc.GetInput(v)
29
}
30
31
+func (w *WorkflowContext) ID() string {
32
+ return string(w.oc.ID)
33
+}
34
+
35
+func (w *WorkflowContext) Name() string {
36
+ return w.oc.Name
37
38
39
+func (w *WorkflowContext) CurrentTimeUTC() time.Time {
40
+ return w.oc.CurrentTimeUtc
41
42
43
+func (w *WorkflowContext) IsReplaying() bool {
44
+ return w.oc.IsReplaying
45
46
47
// CallActivity schedules an asynchronous invocation of an activity function.
48
// The [activity] parameter can be either the name of an activity as a string
49
// or can be a pointer to the function that implements the activity, in which
0 commit comments