Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zambrovski committed Nov 23, 2023
1 parent 694caf7 commit 4410ab1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ If you just want to start using the library, put the following dependency into y
<dependency>
<groupId>io.holunda.data</groupId>
<artifactId>camunda-bpm-data</artifactId>
<version>1.4.0</version>
<version>1.5.0</version>
</dependency>
```

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:
Expand Down Expand Up @@ -114,7 +114,8 @@ public class ApproveOrderTaskController {

@GetMapping("/{taskId}")
public ResponseEntity<ApproveTaskDto> 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));
}

Expand Down

0 comments on commit 4410ab1

Please sign in to comment.