Skip to content

Instantly share code, notes, and snippets.

@pedesen
Last active October 13, 2019 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedesen/71e06f6a3e3bcbc7721cd970215b5180 to your computer and use it in GitHub Desktop.
Save pedesen/71e06f6a3e3bcbc7721cd970215b5180 to your computer and use it in GitHub Desktop.
Create Zeebe task worker

Creates a task worker and subscribes to specific tasks/jobs.

The worker node outputs a Node-RED message for each newly received task/job. When a Node-RED message is received at the complete nodes's input, that task/job gets completed in Zeebe (with either success or failure).

Please note: These nodes only work in combination. Make sure, the complete object from the worker node output payload gets injected into the input of the complete node.

[{"id":"8494146c.8a88d8","type":"task-worker","z":"b71ce72e.d756f8","name":"","maxActiveJobs":32,"timeout":1000,"x":250,"y":360,"wires":[["adc61cda.dd862"]]},{"id":"67eef6db.de8958","type":"complete-task","z":"b71ce72e.d756f8","name":"","x":640,"y":360,"wires":[]},{"id":"adc61cda.dd862","type":"function","z":"b71ce72e.d756f8","name":"do some work","func":"/**\n * Do some work here and make sure, the message\n * is routed to the 'complete' node.\n */\n\nreturn msg;","outputs":1,"noerr":0,"x":440,"y":360,"wires":[["67eef6db.de8958"]]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment