Skip to content

Commit 382230e

Browse files
committed
Fix workflow
Signed-off-by: siri-varma <[email protected]>
1 parent 0297ef7 commit 382230e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

workflows/java/sdk/order-processor/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<dependency>
1818
<groupId>io.dapr</groupId>
1919
<artifactId>dapr-sdk-workflows</artifactId>
20-
<version>0.12.0</version>
20+
<version>0.14.1</version>
2121
</dependency>
2222
<dependency>
2323
<groupId>org.slf4j</groupId>

workflows/java/sdk/order-processor/src/main/java/io/dapr/quickstarts/workflows/WorkflowConsoleApp.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,16 @@ public static void main(String[] args) throws Exception {
5555
builder.registerActivity(UpdateInventoryActivity.class);
5656

5757
// Build and then start the workflow runtime pulling and executing tasks
58-
try (WorkflowRuntime runtime = builder.build()) {
59-
System.out.println("Start workflow runtime");
60-
runtime.start(false);
61-
}
58+
WorkflowRuntime runtime = builder.build();
59+
System.out.println("Start workflow runtime");
60+
runtime.start(false);
6261

6362
InventoryItem inventory = prepareInventoryAndOrder();
6463

6564
DaprWorkflowClient workflowClient = new DaprWorkflowClient();
6665
try (workflowClient) {
6766
executeWorkflow(workflowClient, inventory);
6867
}
69-
7068
}
7169

7270
private static void executeWorkflow(DaprWorkflowClient workflowClient, InventoryItem inventory) {

0 commit comments

Comments
 (0)