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