From 4410ab1d587c5b87edcb79207825574ea09179d7 Mon Sep 17 00:00:00 2001 From: Simon Zambrovski Date: Thu, 23 Nov 2023 10:48:39 +0100 Subject: [PATCH] fix readme --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 582aa895..f83cbc94 100644 --- a/README.md +++ b/README.md @@ -42,20 +42,20 @@ If you just want to start using the library, put the following dependency into y io.holunda.data camunda-bpm-data - 1.4.0 + 1.5.0 ``` If you are using Gradle Kotlin DSL add to your `build.gradle.kts`: ``` kotlin -implementation("io.holunda.data:camunda-bpm-data:1.4.0") +implementation("io.holunda.data:camunda-bpm-data:1.5.0") ``` For Gradle Groovy DSL add to your `build.gradle`: ``` groovy -implementation 'io.holunda.data:camunda-bpm-data:1.4.0' +implementation 'io.holunda.data:camunda-bpm-data:1.5.0' ``` ### Variable declaration Now your setup is completed, and you can declare your variables like this: @@ -114,7 +114,8 @@ public class ApproveOrderTaskController { @GetMapping("/{taskId}") public ResponseEntity loadTask(@PathVariable("taskId") String taskId) { - Order order = ORDER.from(taskService, taskId).get(); + VariableReader reader = CamundaBpmData.reader(taskService, taskId); + Order order = reader.get(ORDER); return ResponseEntity.ok(new ApproveTaskDto(order)); }