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"]]}]

Flow Info

Created 4 years, 11 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • function (x1)
Other
  • complete-task (x1)
  • task-worker (x1)

Tags

  • zeebe
  • bpmn
  • microservice
  • camunda
  • workflow
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option