sure
[{"id":"ee1921195e1f3b6c","type":"status","z":"c77ba1683e345234","name":"ExecStatus","scope":["c4ff59a7c876123f"],"x":1050,"y":720,"wires":[["d78095b461723415"]]},{"id":"d78095b461723415","type":"function","z":"c77ba1683e345234","name":"CheckStatus","func":"\nvar test = msg.status.text;\n\nif (test.includes('pid:')) { \n msg.payload=\"Process running\"\n}\n\nelse if (test.includes('kill')) { \n msg.payload=\"Process stopped\"\n}\n\nelse {\n msg.payload=\"Unknow process status\"\n}\nmsg.topic=\"Learnig status\";\nmsg.payload={\"Status\":msg.payload, \"Topic\":msg.topic};\n\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1250,"y":720,"wires":[["ab3735fbdb4de2c8"]]},{"id":"ede1db84ccbe2c51","type":"http in","z":"c77ba1683e345234","name":"Input from KIosk","url":"/api/learningstatus","method":"get","upload":false,"swaggerDoc":"","x":1060,"y":760,"wires":[["4270a9372c1fbbe5"]]},{"id":"4135fe289f5c7d33","type":"http response","z":"c77ba1683e345234","name":"","statusCode":"200","headers":{},"x":1420,"y":760,"wires":[]},{"id":"4270a9372c1fbbe5","type":"template","z":"c77ba1683e345234","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"\"Learning_status\": \"{{global.learningStatus}}\"\n","output":"str","x":1240,"y":760,"wires":[["4135fe289f5c7d33"]]},{"id":"ab3735fbdb4de2c8","type":"change","z":"c77ba1683e345234","name":"","rules":[{"t":"set","p":"LearningStatus","pt":"global","to":"payload.Status","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1450,"y":720,"wires":[["bfe334ed56797848"]]},{"id":"bfe334ed56797848","type":"debug","z":"c77ba1683e345234","name":"Var from setting","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1680,"y":720,"wires":[]}]