mirror of https://github.com/dapr/quickstarts.git
Fix workflow
Signed-off-by: siri-varma <siri.varma@outlook.com>
This commit is contained in:
parent
0297ef719d
commit
382230e5e0
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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