File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
workflows/java/sdk/order-processor
src/main/java/io/dapr/quickstarts/workflows Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments