File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
examples/src/main/java/io/dapr/examples/workflows Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -662,6 +662,23 @@ For testing the suspend and resume operations we will use the same workflow defi
662
662
663
663
Start the workflow and client using the following commands:
664
664
665
+
666
+ <!-- STEP
667
+ name: Run Compensation Pattern workflow worker
668
+ match_order: none
669
+ output_match_mode: substring
670
+ expected_stdout_lines:
671
+ - "Starting Workflow: io.dapr.examples.workflows.suspendresume.DemoExternalEventWorkflow"
672
+ - "Waiting for approval..."
673
+ - "approval granted - do the approved action"
674
+ - "Starting Activity: io.dapr.examples.workflows.externalevent.ApproveActivity"
675
+ - "Running approval activity..."
676
+ - "approval-activity finished"
677
+ background: true
678
+ sleep: 60
679
+ timeout_seconds: 60
680
+ -->
681
+
665
682
``` sh
666
683
dapr run --app-id demoworkflowworker --resources-path ./components/workflows -- java -jar target/dapr-java-sdk-examples-exec.jar io.dapr.examples.workflows.suspendresume.DemoSuspendResumeWorker
667
684
```
@@ -670,6 +687,8 @@ dapr run --app-id demoworkflowworker --resources-path ./components/workflows --
670
687
java -jar target/dapr-java-sdk-examples-exec.jar io.dapr.examples.workflows.suspendresume.DemoSuspendResumeClient
671
688
```
672
689
690
+ <!-- END_STEP -->
691
+
673
692
The worker logs:
674
693
``` text
675
694
== APP == 2023-11-07 16:01:23,279 {HH:mm:ss.SSS} [main] INFO io.dapr.workflows.WorkflowContext - Starting Workflow: io.dapr.examples.workflows.suspendresume.DemoExternalEventWorkflow
You can’t perform that action at this time.
0 commit comments