Skip to content

Commit 71d51c0

Browse files
committed
adding output validation
Signed-off-by: salaboy <[email protected]>
1 parent 3cce79c commit 71d51c0

File tree

1 file changed

+19
-0
lines changed
  • examples/src/main/java/io/dapr/examples/workflows

1 file changed

+19
-0
lines changed

examples/src/main/java/io/dapr/examples/workflows/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,23 @@ For testing the suspend and resume operations we will use the same workflow defi
662662

663663
Start the workflow and client using the following commands:
664664

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+
665682
```sh
666683
dapr run --app-id demoworkflowworker --resources-path ./components/workflows -- java -jar target/dapr-java-sdk-examples-exec.jar io.dapr.examples.workflows.suspendresume.DemoSuspendResumeWorker
667684
```
@@ -670,6 +687,8 @@ dapr run --app-id demoworkflowworker --resources-path ./components/workflows --
670687
java -jar target/dapr-java-sdk-examples-exec.jar io.dapr.examples.workflows.suspendresume.DemoSuspendResumeClient
671688
```
672689

690+
<!-- END_STEP -->
691+
673692
The worker logs:
674693
```text
675694
== 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

0 commit comments

Comments
 (0)