Fix workflow

Signed-off-by: siri-varma <siri.varma@outlook.com>
This commit is contained in:
siri-varma 2025-05-28 07:48:19 -07:00
parent 0297ef719d
commit 382230e5e0
2 changed files with 4 additions and 6 deletions

View File

@ -17,7 +17,7 @@
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-workflows</artifactId>
<version>0.12.0</version>
<version>0.14.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>

View File

@ -55,10 +55,9 @@ public class WorkflowConsoleApp {
builder.registerActivity(UpdateInventoryActivity.class);
// Build and then start the workflow runtime pulling and executing tasks
try (WorkflowRuntime runtime = builder.build()) {
System.out.println("Start workflow runtime");
runtime.start(false);
}
WorkflowRuntime runtime = builder.build();
System.out.println("Start workflow runtime");
runtime.start(false);
InventoryItem inventory = prepareInventoryAndOrder();
@ -66,7 +65,6 @@ public class WorkflowConsoleApp {
try (workflowClient) {
executeWorkflow(workflowClient, inventory);
}
}
private static void executeWorkflow(DaprWorkflowClient workflowClient, InventoryItem inventory) {