Skip to content

Commit

Permalink
renamed ProcessVariable class in docs to avoid confusion (closes #202)
Browse files Browse the repository at this point in the history
  • Loading branch information
berndruecker committed May 23, 2022
1 parent 0a4e288 commit df64475
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ public void handleJobFoo(final JobClient client, final ActivatedJob job, @ZeebeV

### Using @ZeebeVariablesAsType

When using `autoComplete` (see below) you can also use your own class variables are mapped to (comparable to `getVariablesAsType()` in the API). Therefore use the `@ZeebeVariablesAsType` annotation:
When using `autoComplete` (see below) you can also use your own class into which the process variables are mapped to (comparable to `getVariablesAsType()` in the API). Therefore use the `@ZeebeVariablesAsType` annotation (`MyProcessVariables` referes to your own class):

```java
@ZeebeWorker(type = "foo", autoComplete = true)
public ProcessVariables handleFoo(@ZeebeVariablesAsType ProcessVariables variables){
public ProcessVariables handleFoo(@ZeebeVariablesAsType MyProcessVariables variables){
// do whatever you need to do
variables.getMyAttribueX();
variables.setMyAttribueY(42);
Expand All @@ -223,7 +223,6 @@ public ProcessVariables handleFoo(@ZeebeVariablesAsType ProcessVariables variabl




### Completing the job

As a default, your job handler code has to also complete the job, otherwise Zeebe will not know you did your work correctly:
Expand Down

0 comments on commit df64475

Please sign in to comment.