As a Zeebe Java user, I want to complete a Job with a single variable #13040
Labels
good first issue
Marks an issue as simple enough for first time contributors
hacktoberfest
Marks an issue as a candidate to be a Hacktoberfest contribution
kind/feature
Categorizes an issue or PR as a feature, i.e. new behavior
onboarding
version:8.3.0-alpha4
Marks an issue as being completely or in parts released in 8.3.0-alpha4
version:8.3.0
Marks an issue as being completely or in parts released in 8.3.0
Is your feature request related to a problem? Please describe.
As a programmer writing Zeebe Job Handlers, I want to complete a job returning only a single variable value.
The
newCompleteCommand
offers only a parameter.variables()
where I have to wrap the value in a Map beforehand.This is overhead.
Describe the solution you'd like
client.newCompleteCommand(job).variable("name", value)...
Describe alternatives you've considered
Promote the Java feature with
Map.of("name", value)
giving examples in the docs and Zeebe examples.Older programmers, that learned Java with versions older than 8 are not aware of this shortcut.
Additional context
It came up in a migration Workshop with a customer.
The text was updated successfully, but these errors were encountered: