Fix workflow

Signed-off-by: siri-varma <siri.varma@outlook.com>
Signed-off-by: salaboy <Salaboy@gmail.com>
This commit is contained in:
siri-varma 2025-05-28 07:48:19 -07:00 committed by salaboy
parent 7201ed109c
commit 34da4b4210
1 changed files with 3 additions and 5 deletions

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) {