go-sdk/examples/workflow
Josh van Leeuwen 2e40804f14
Worklow: add now about start time (#742)
Signed-off-by: joshvanl <me@joshvanl.dev>
Co-authored-by: Mike Nguyen <hey@mike.ee>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2025-08-07 08:54:08 -07:00
..
config feat: workflow authoring and management support (#487) 2024-02-09 07:32:36 -08:00
README.md worflows: activity retry policy (#644) 2024-11-13 22:02:27 -07:00
main.go Worklow: add now about start time (#742) 2025-08-07 08:54:08 -07:00

README.md

Dapr Workflow Example with go-sdk

Step

Prepare

  • Dapr installed

Run Workflow

dapr run --app-id workflow \
         --dapr-grpc-port 50001 \
         --log-level debug \
         --resources-path ./config \
         -- go run ./main.go

Result

  - '== APP == Worker initialized'
  - '== APP == TestWorkflow registered'
  - '== APP == TestActivity registered'
  - '== APP == runner started'
  - '== APP == workflow started with id: a7a4168d-3a1c-41da-8a4f-e7f6d9c718d9'
  - '== APP == workflow paused'
  - '== APP == workflow resumed'
  - '== APP == stage: 1'
  - '== APP == workflow event raised'
  - '== APP == stage: 2'
  - '== APP == workflow status: COMPLETED'
  - '== APP == workflow purged'
  - '== APP == stage: 2'
  - '== APP == workflow started with id: a7a4168d-3a1c-41da-8a4f-e7f6d9c718d9'
  - '== APP == workflow terminated'
  - '== APP == workflow purged'
  - '== APP == workflow client test'
  - '== APP == [wfclient] started workflow with id: a7a4168d-3a1c-41da-8a4f-e7f6d9c718d9'
  - '== APP == [wfclient] workflow status: RUNNING'
  - '== APP == [wfclient] stage: 1'
  - '== APP == [wfclient] event raised'
  - '== APP == [wfclient] stage: 2'
  - '== APP == [wfclient] workflow terminated'
  - '== APP == [wfclient] workflow purged'
  - '== APP == workflow worker successfully shutdown'