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/1195ed3512bc05c02558e319ebc46abb to your computer and use it in GitHub Desktop.
Save pedesen/1195ed3512bc05c02558e319ebc46abb to your computer and use it in GitHub Desktop.
Create Zeebe workflow instance

A new workflow instance gets started in Zeebe, when a Node-RED message is received at the input.

Once the workflow instance has been created, the output sends a Node-RED message containing some meta-info, i.e. the workflowInstanceKey.

[{"id":"ae933c45.dc807","type":"workflow-instance","z":"b71ce72e.d756f8","name":"","zeebe":"","x":460,"y":560,"wires":[["19761a7c.bb4656"]]},{"id":"7147df1c.ef60c","type":"inject","z":"b71ce72e.d756f8","name":"","topic":"","payload":"{\"workflowName\":\"MyWorkflow\",\"variables\":{\"orderId\":\"0042\"}}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":560,"wires":[["ae933c45.dc807"]]},{"id":"19761a7c.bb4656","type":"debug","z":"b71ce72e.d756f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":660,"y":560,"wires":[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment