UNPKG

@5minds/node-red-contrib-processcube

Version:
393 lines • 9.32 kB
[ { "id": "a23d2e782beb66f4", "type": "tab", "label": "External Task Sample", "disabled": false, "info": "", "env": [] }, { "id": "70d7a70e375b162a", "type": "group", "z": "a23d2e782beb66f4", "style": { "stroke": "#999999", "stroke-opacity": "1", "fill": "none", "fill-opacity": "1", "label": true, "label-position": "nw", "color": "#a4a4a4" }, "nodes": [ "2991a5e6df2b87d2", "911fde53bcbb7e3f", "d56bb7cd73fd220c", "15a5f64b9e2e05fc" ], "x": 34, "y": 79, "w": 512, "h": 142 }, { "id": "31cb6729aac0ba46", "type": "group", "z": "a23d2e782beb66f4", "style": { "stroke": "#999999", "stroke-opacity": "1", "fill": "none", "fill-opacity": "1", "label": true, "label-position": "nw", "color": "#a4a4a4" }, "nodes": [ "18e05d562d48f32d", "49aee03a7885fae8", "e4555d9019cd3f47", "bd68c4bdc53b8f80", "fb87f79852b22e4a", "1ba1e62c9935255f", "b49f226ba865e164" ], "x": 34, "y": 259, "w": 812, "h": 202 }, { "id": "390ad4a596a3c002", "type": "group", "z": "a23d2e782beb66f4", "style": { "stroke": "#999999", "stroke-opacity": "1", "fill": "none", "fill-opacity": "1", "label": true, "label-position": "nw", "color": "#a4a4a4" }, "nodes": [ "529b24c862f7039d", "f4011d6a57c6e13f", "fba605329413c78d", "5e5394e458d1de7c", "18e9e15ef645a908", "eb96f3128ece1be8" ], "x": 34, "y": 499, "w": 832, "h": 202 }, { "id": "2991a5e6df2b87d2", "type": "externaltask-input", "z": "a23d2e782beb66f4", "g": "70d7a70e375b162a", "name": "Test", "engine": "42e6796dddd9d4db", "topic": "Test", "x": 110, "y": 180, "wires": [ [ "d56bb7cd73fd220c" ] ] }, { "id": "911fde53bcbb7e3f", "type": "externaltask-output", "z": "a23d2e782beb66f4", "g": "70d7a70e375b162a", "name": "Test Ende", "x": 460, "y": 180, "wires": [] }, { "id": "d56bb7cd73fd220c", "type": "delay", "z": "a23d2e782beb66f4", "g": "70d7a70e375b162a", "name": "", "pauseType": "delay", "timeout": "1", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 280, "y": 180, "wires": [ [ "911fde53bcbb7e3f" ] ] }, { "id": "18e05d562d48f32d", "type": "externaltask-input", "z": "a23d2e782beb66f4", "g": "31cb6729aac0ba46", "name": "SampleError", "engine": "42e6796dddd9d4db", "topic": "SampleError", "x": 130, "y": 360, "wires": [ [ "49aee03a7885fae8" ] ] }, { "id": "49aee03a7885fae8", "type": "delay", "z": "a23d2e782beb66f4", "g": "31cb6729aac0ba46", "name": "", "pauseType": "delay", "timeout": "5", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 320, "y": 360, "wires": [ [ "bd68c4bdc53b8f80" ] ] }, { "id": "e4555d9019cd3f47", "type": "catch", "z": "a23d2e782beb66f4", "g": "31cb6729aac0ba46", "name": "", "scope": "group", "uncaught": false, "x": 510, "y": 420, "wires": [ [ "fb87f79852b22e4a" ] ] }, { "id": "bd68c4bdc53b8f80", "type": "function", "z": "a23d2e782beb66f4", "g": "31cb6729aac0ba46", "name": "raise Error", "func": "//throw Error(\"hello error\");\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 510, "y": 360, "wires": [ [ "1ba1e62c9935255f" ] ] }, { "id": "fb87f79852b22e4a", "type": "externaltask-error", "z": "a23d2e782beb66f4", "g": "31cb6729aac0ba46", "name": "Send Error to Engine", "error": "MyErrorCode", "x": 720, "y": 420, "wires": [ [] ] }, { "id": "1ba1e62c9935255f", "type": "externaltask-output", "z": "a23d2e782beb66f4", "g": "31cb6729aac0ba46", "name": "", "x": 710, "y": 360, "wires": [] }, { "id": "15a5f64b9e2e05fc", "type": "comment", "z": "a23d2e782beb66f4", "g": "70d7a70e375b162a", "name": "Simple External Task handling", "info": "", "x": 180, "y": 120, "wires": [] }, { "id": "b49f226ba865e164", "type": "comment", "z": "a23d2e782beb66f4", "g": "31cb6729aac0ba46", "name": "Error handling with external tasks", "info": "", "x": 190, "y": 300, "wires": [] }, { "id": "799125e21de02f13", "type": "comment", "z": "a23d2e782beb66f4", "name": "For Testing, deploy \"External-Task-Sample.bpmn\" and start the process.", "info": "", "x": 300, "y": 40, "wires": [] }, { "id": "529b24c862f7039d", "type": "endevent-finished-listener", "z": "a23d2e782beb66f4", "d": true, "g": "390ad4a596a3c002", "name": "", "engine": "42e6796dddd9d4db", "x": 170, "y": 600, "wires": [ [ "f4011d6a57c6e13f" ] ] }, { "id": "f4011d6a57c6e13f", "type": "delay", "z": "a23d2e782beb66f4", "g": "390ad4a596a3c002", "name": "", "pauseType": "delay", "timeout": "5", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 400, "y": 600, "wires": [ [ "18e9e15ef645a908" ] ] }, { "id": "fba605329413c78d", "type": "process-start", "z": "a23d2e782beb66f4", "g": "390ad4a596a3c002", "name": "", "engine": "42e6796dddd9d4db", "processmodel": "External-Task-Sample_Process", "startevent": "StartEvent_1", "x": 770, "y": 600, "wires": [ [] ] }, { "id": "5e5394e458d1de7c", "type": "inject", "z": "a23d2e782beb66f4", "g": "390ad4a596a3c002", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "start", "payloadType": "str", "x": 430, "y": 660, "wires": [ [ "18e9e15ef645a908" ] ] }, { "id": "18e9e15ef645a908", "type": "function", "z": "a23d2e782beb66f4", "g": "390ad4a596a3c002", "name": "pre payload", "func": "msg.payload = {\n \"hello\": \"world\"\n};\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 590, "y": 600, "wires": [ [ "fba605329413c78d" ] ] }, { "id": "eb96f3128ece1be8", "type": "comment", "z": "a23d2e782beb66f4", "g": "390ad4a596a3c002", "name": "Start of Process and restart if it is finished", "info": "", "x": 220, "y": 540, "wires": [] }, { "id": "42e6796dddd9d4db", "type": "processcube-engine-config", "url": "http://engine:8000" } ]