@@ -80,7 +80,7 @@ func main() {
8080 log .Fatalf ("failed to fetch workflow: %v" , err )
8181 }
8282
83- if respFetch .RuntimeStatus != workflow .StatusSuspended {
83+ if respFetch .RuntimeStatus () != workflow .StatusSuspended {
8484 log .Fatalf ("workflow not paused: %s: %v" , respFetch .RuntimeStatus , respFetch )
8585 }
8686
@@ -97,7 +97,7 @@ func main() {
9797 log .Fatalf ("failed to get workflow: %v" , err )
9898 }
9999
100- if respFetch .RuntimeStatus != workflow .StatusRunning {
100+ if respFetch .RuntimeStatus () != workflow .StatusRunning {
101101 log .Fatalf ("workflow not running" )
102102 }
103103
@@ -132,7 +132,7 @@ func main() {
132132 log .Fatalf ("failed to get workflow: %v" , err )
133133 }
134134
135- fmt .Printf ("workflow status: %v\n " , respFetch .RuntimeStatus )
135+ fmt .Printf ("workflow status: %v\n " , respFetch .RuntimeStatus (). String () )
136136
137137 // Purge workflow test
138138 err = wclient .PurgeWorkflowState (ctx , instanceID )
@@ -160,7 +160,7 @@ func main() {
160160 if err != nil {
161161 log .Fatalf ("failed to get workflow: %v" , err )
162162 }
163- fmt .Printf ("workflow status: %s\n " , metadata .RuntimeStatus .String ())
163+ fmt .Printf ("workflow status: %s\n " , metadata .RuntimeStatus () .String ())
164164
165165 err = wclient .TerminateWorkflow (ctx , id )
166166 if err != nil {
0 commit comments