camunda-community-hub / zeebe-client-node-js

Node.js client library for Zeebe Microservices Orchestration Engine
https://camunda-community-hub.github.io/zeebe-client-node-js/
Apache License 2.0
152 stars 38 forks source link

Add complete and fail methods to job #209

Closed jwulf closed 3 years ago

jwulf commented 3 years ago

While using the library, I find myself typing job.complete(). For the 1.0.0 release, add the complete.success method as job.complete, complete.failure as job.fail, complete.error as job.error, and complete.forward as job.forward.

This will involve overloading the task handler signature as well, to allow people to continue to use the old complete parameter. This should be marked as deprecated, and the documentation updated to reflect the new API surface.