-
Notifications
You must be signed in to change notification settings - Fork 224
Closed
Description
Describe the proposal
I am reading the workflow example and find it a little bit messy due to combining all APIs in a single workflow example. I was wondering should we separate the single huge workflow into several examples, each giving a more concrete example of a set of APIs. This may help user to better understand it.
Also continueAsNew API has a break change with the release here https://github.com/microsoft/durabletask-java/releases/tag/1.2.0. It will not continue executing logic after it (an exception is thrown out in the durabletask SDK to force yield control back to the sidecar). So example here
java-sdk/examples/src/main/java/io/dapr/examples/workflows/DemoWorkflow.java
Lines 109 to 121 in 0d0d599
| if (shouldComplete) { | |
| ctx.getLogger().info("Child-Workflow> Calling ChildWorkflow..."); | |
| var childWorkflowInput = "Hello ChildWorkflow!"; | |
| var childWorkflowOutput = | |
| ctx.callSubWorkflow(DemoSubWorkflow.class.getName(), childWorkflowInput, String.class).await(); | |
| ctx.getLogger().info("Child-Workflow> returned: " + childWorkflowOutput); | |
| ctx.getLogger().info("Workflow finished"); | |
| ctx.complete("finished"); | |
| return; | |
| } |
Metadata
Metadata
Assignees
Labels
No labels