Skip to content

Instantly share code, notes, and snippets.

@pedesen
Created October 13, 2019 12:00
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/1fdad35c25b7269eea64b76d3236c3a6 to your computer and use it in GitHub Desktop.
Save pedesen/1fdad35c25b7269eea64b76d3236c3a6 to your computer and use it in GitHub Desktop.
Deploy workflow to Zeebe

Inject a bpmn workflow definition string to the input of the deploy node to deploy it to Zeebe.

You can use the 'file in' node from Node-RED to read a bpmn file from disk, or get the workflow definition from anywhere you want.

[
{
"id": "38ead71f.e78928",
"type": "deploy",
"z": "4fdab399.ad8454",
"name": "",
"zeebe": "",
"x": 710,
"y": 340,
"wires": [
[
"ddbbfd58.f17f2"
]
]
},
{
"id": "ec749d70.07711",
"type": "file in",
"z": "4fdab399.ad8454",
"name": "bpmn file",
"filename": "/path/to/workflow.bpmn",
"format": "utf8",
"chunk": false,
"sendError": false,
"encoding": "none",
"x": 400,
"y": 340,
"wires": [
[
"f65be93a.5651c8"
]
]
},
{
"id": "757de494.6c4784",
"type": "inject",
"z": "4fdab399.ad8454",
"name": "",
"topic": "",
"payload": "",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 250,
"y": 340,
"wires": [
[
"ec749d70.07711"
]
]
},
{
"id": "f65be93a.5651c8",
"type": "change",
"z": "4fdab399.ad8454",
"name": "prepare",
"rules": [
{
"t": "move",
"p": "payload",
"pt": "msg",
"to": "payload.definition",
"tot": "msg"
},
{
"t": "set",
"p": "payload.resourceName",
"pt": "msg",
"to": "workflow.bpmn",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 560,
"y": 340,
"wires": [
[
"38ead71f.e78928"
]
]
},
{
"id": "ddbbfd58.f17f2",
"type": "debug",
"z": "4fdab399.ad8454",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 870,
"y": 340,
"wires": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment