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)); }