mirror of https://github.com/dapr/quickstarts.git
Fix workflow
Signed-off-by: siri-varma <siri.varma@outlook.com> Signed-off-by: salaboy <Salaboy@gmail.com>
This commit is contained in:
parent
7201ed109c
commit
34da4b4210
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue