{"type":"process_package","version":"1","process":{"id":8,"process_category_id":"3","user_id":1,"description":"Test","name":"Test Process 01","cancel_screen_id":null,"request_detail_screen_id":null,"status":"ACTIVE","is_valid":1,"package_key":null,"pause_timer_start":0,"deleted_at":null,"created_at":"2019-05-06T23:04:28+00:00","updated_at":"2021-08-13T20:00:49+00:00","start_events":[{"id":"node_1","name":"Start Event","ownerProcessId":"ProcessId","eventDefinitions":[],"ownerProcessName":"ProcessName"}],"warnings":null,"self_service_tasks":[],"signal_events":[],"conditional_events":[],"properties":null,"has_timer_start_events":false,"notifications":{"requester":{"started":true,"canceled":false,"completed":false},"assignee":{"started":false,"canceled":false,"completed":false},"participants":{"started":false,"canceled":false,"completed":false}},"task_notifications":{"node_3":{"requester":{"assigned":false,"completed":false,"due":false},"assignee":{"assigned":true,"completed":false,"due":false},"participants":{"assigned":false,"completed":false,"due":false}}},"bpmn":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bpmn:definitions xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:bpmn=\"http:\/\/www.omg.org\/spec\/BPMN\/20100524\/MODEL\" xmlns:bpmndi=\"http:\/\/www.omg.org\/spec\/BPMN\/20100524\/DI\" xmlns:dc=\"http:\/\/www.omg.org\/spec\/DD\/20100524\/DC\" xmlns:di=\"http:\/\/www.omg.org\/spec\/DD\/20100524\/DI\" xmlns:pm=\"http:\/\/processmaker.com\/BPMN\/2.0\/Schema.xsd\" xmlns:tns=\"http:\/\/sourceforge.net\/bpmn\/definitions\/_1530553328908\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" targetNamespace=\"http:\/\/bpmn.io\/schema\/bpmn\" exporter=\"ProcessMaker Modeler\" exporterVersion=\"1.0\" xsi:schemaLocation=\"http:\/\/www.omg.org\/spec\/BPMN\/20100524\/MODEL http:\/\/bpmn.sourceforge.net\/schemas\/BPMN20.xsd\">\n  <bpmn:process id=\"ProcessId\" name=\"ProcessName\" isExecutable=\"true\">\n    <bpmn:startEvent id=\"node_1\" name=\"Start Event\">\n      <bpmn:outgoing>node_7<\/bpmn:outgoing>\n    <\/bpmn:startEvent>\n    <bpmn:endEvent id=\"node_2\" name=\"End Event\">\n      <bpmn:incoming>node_11<\/bpmn:incoming>\n    <\/bpmn:endEvent>\n    <bpmn:scriptTask id=\"node_3\" name=\"Script Task 1\" pm:scriptRef=\"6\">\n      <bpmn:incoming>node_7<\/bpmn:incoming>\n      <bpmn:outgoing>node_8<\/bpmn:outgoing>\n    <\/bpmn:scriptTask>\n    <bpmn:scriptTask id=\"node_5\" name=\"Script Task 2\" pm:scriptRef=\"7\">\n      <bpmn:incoming>node_9<\/bpmn:incoming>\n      <bpmn:outgoing>node_10<\/bpmn:outgoing>\n    <\/bpmn:scriptTask>\n    <bpmn:task id=\"node_4\" name=\"Human Task 1\" pm:screenRef=\"9\">\n      <bpmn:incoming>node_8<\/bpmn:incoming>\n      <bpmn:outgoing>node_9<\/bpmn:outgoing>\n    <\/bpmn:task>\n    <bpmn:task id=\"node_6\" name=\"Human Task 2\" pm:screenRef=\"10\">\n      <bpmn:incoming>node_10<\/bpmn:incoming>\n      <bpmn:outgoing>node_11<\/bpmn:outgoing>\n    <\/bpmn:task>\n    <bpmn:sequenceFlow id=\"node_7\" name=\"New Sequence Flow\" sourceRef=\"node_1\" targetRef=\"node_3\" pm:startEvent=\"\"\/>\n    <bpmn:sequenceFlow id=\"node_8\" name=\"New Sequence Flow\" sourceRef=\"node_3\" targetRef=\"node_4\" pm:startEvent=\"\"\/>\n    <bpmn:sequenceFlow id=\"node_9\" name=\"New Sequence Flow\" sourceRef=\"node_4\" targetRef=\"node_5\" pm:startEvent=\"\"\/>\n    <bpmn:sequenceFlow id=\"node_10\" name=\"New Sequence Flow\" sourceRef=\"node_5\" targetRef=\"node_6\" pm:startEvent=\"\"\/>\n    <bpmn:sequenceFlow id=\"node_11\" name=\"New Sequence Flow\" sourceRef=\"node_6\" targetRef=\"node_2\" pm:startEvent=\"\"\/>\n  <\/bpmn:process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagramId\">\n    <bpmndi:BPMNPlane id=\"BPMNPlaneId\" bpmnElement=\"ProcessId\">\n      <bpmndi:BPMNShape id=\"node_1_di\" bpmnElement=\"node_1\">\n        <dc:Bounds x=\"80\" y=\"100\" width=\"36\" height=\"36\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"node_2_di\" bpmnElement=\"node_2\">\n        <dc:Bounds x=\"890\" y=\"210\" width=\"36\" height=\"36\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"node_3_di\" bpmnElement=\"node_3\">\n        <dc:Bounds x=\"180\" y=\"210\" width=\"116\" height=\"76\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"node_5_di\" bpmnElement=\"node_5\">\n        <dc:Bounds x=\"610\" y=\"210\" width=\"116\" height=\"76\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"node_4_di\" bpmnElement=\"node_4\">\n        <dc:Bounds x=\"380\" y=\"310\" width=\"116\" height=\"76\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"node_6_di\" bpmnElement=\"node_6\">\n        <dc:Bounds x=\"730\" y=\"320\" width=\"116\" height=\"76\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNEdge id=\"node_7_di\" bpmnElement=\"node_7\">\n        <di:waypoint x=\"116\" y=\"118\"\/>\n        <di:waypoint x=\"158\" y=\"118\"\/>\n        <di:waypoint x=\"158\" y=\"248\"\/>\n        <di:waypoint x=\"180\" y=\"248\"\/>\n      <\/bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"node_8_di\" bpmnElement=\"node_8\">\n        <di:waypoint x=\"296\" y=\"248\"\/>\n        <di:waypoint x=\"358\" y=\"248\"\/>\n        <di:waypoint x=\"358\" y=\"348\"\/>\n        <di:waypoint x=\"380\" y=\"348\"\/>\n      <\/bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"node_9_di\" bpmnElement=\"node_9\">\n        <di:waypoint x=\"496\" y=\"348\"\/>\n        <di:waypoint x=\"588\" y=\"348\"\/>\n        <di:waypoint x=\"588\" y=\"248\"\/>\n        <di:waypoint x=\"610\" y=\"248\"\/>\n      <\/bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"node_10_di\" bpmnElement=\"node_10\">\n        <di:waypoint x=\"726\" y=\"248\"\/>\n        <di:waypoint x=\"788\" y=\"248\"\/>\n        <di:waypoint x=\"788\" y=\"320\"\/>\n      <\/bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"node_11_di\" bpmnElement=\"node_11\">\n        <di:waypoint x=\"846\" y=\"358\"\/>\n        <di:waypoint x=\"908\" y=\"358\"\/>\n        <di:waypoint x=\"908\" y=\"246\"\/>\n      <\/bpmndi:BPMNEdge>\n    <\/bpmndi:BPMNPlane>\n  <\/bpmndi:BPMNDiagram>\n<\/bpmn:definitions>\n","anonymousUserId":1},"process_categories":[{"id":3,"name":"HR","status":"ACTIVE","is_system":0,"created_at":"2019-05-06T23:03:36+00:00","updated_at":"2021-08-13T20:00:31+00:00","pivot":{"assignable_id":8,"category_id":3,"category_type":"ProcessMaker\\Models\\ProcessCategory"}}],"screens":[{"id":9,"screen_category_id":null,"title":"Screen 01","description":"Test","type":"FORM","config":[{"name":"Form01","items":[{"label":"Line Input","config":{"name":"first_name","type":"text","label":"First Name","helper":null,"validation":null,"placeholder":null},"component":"FormInput","inspector":[{"type":"FormInput","field":"name","config":{"name":"Field Name","label":"Field Name","helper":"The data name for this field","validation":"regex:\/^(?:[$A-Z_a-z])(?:[$0-9A-Z_a-z])*$\/|required"}},{"type":"FormMultiselect","field":"type","config":{"name":"Field Type","label":"Field Type","helper":"The type for this field","options":[{"value":"text","content":"Text"},{"value":"password","content":"Password"}]}},{"type":"FormInput","field":"label","config":{"label":"Field Label","helper":"The label describes the fields name"}},{"type":"FormInput","field":"validation","config":{"label":"Validation","helper":"The validation rules needed for this field"}},{"type":"FormInput","field":"placeholder","config":{"label":"Placeholder","helper":"The placeholder is what is shown in the field when no value is provided yet"}},{"type":"FormInput","field":"helper","config":{"label":"Help Text","helper":"Help text is meant to provide additional guidance on the field's value"}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Element Background color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"ColorSelect","field":"color","config":{"label":"Text color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"selector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"attr-value"}}],"editor-component":"FormInput"},{"label":"Submit","config":{"name":"save","event":"submit","label":"Save","variant":"primary","fieldValue":null},"component":"FormButton","inspector":[{"type":"FormInput","field":"label","config":{"label":"Field Label","helper":"The label describes the button's text"}},{"type":"FormInput","field":"name","config":{"label":"Field Name","helper":"The name of the button","validation":"regex:\/^(?:[$A-Z_a-z])(?:[$0-9A-Z_a-z])*$\/|required"}},{"type":"FormInput","field":"fieldValue","config":{"label":"Field Value","helper":"The value being submitted"}},{"type":"FormMultiselect","field":"variant","config":{"label":"Variant","helper":"The variant determines the appearance of the button","options":[{"value":"primary","content":"Primary"},{"value":"secondary","content":"Secondary"},{"value":"success","content":"Success"},{"value":"danger","content":"Danger"},{"value":"warning","content":"Warning"},{"value":"info","content":"Info"},{"value":"light","content":"Light"},{"value":"dark","content":"Dark"},{"value":"link","content":"Link"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"selector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"attr-value"}}],"editor-component":"FormButton"}]}],"computed":[],"custom_css":null,"created_at":"2019-05-07T17:26:28+00:00","updated_at":"2021-08-13T20:00:31+00:00","status":"ACTIVE","key":null,"watchers":null,"categories":[]},{"id":10,"screen_category_id":null,"title":"Screen 02","description":"Test","type":"FORM","config":[{"name":"Form02","items":[{"label":"Line Input","config":{"name":"first_name","type":"text","label":"First Name","helper":null,"validation":null,"placeholder":null},"component":"FormInput","inspector":[{"type":"FormInput","field":"name","config":{"name":"Field Name","label":"Field Name","helper":"The data name for this field","validation":"regex:\/^(?:[A-Za-z])(?:[0-9A-Z_a-z])*(?:\\.[0-9A-Z_a-z]+)*$\/|required|not_in:null,break,case,catch,continue,debugger,default,delete,do,else,finally,for,function,if,in,instanceof,new,return,switch,this,throw,try,typeof,var,void,while,with,class,const,enum,export,extends,import,super"}},{"type":"FormMultiselect","field":"type","config":{"name":"Field Type","label":"Field Type","helper":"The type for this field","options":[{"value":"text","content":"Text"},{"value":"password","content":"Password"}]}},{"type":"FormInput","field":"label","config":{"label":"Field Label","helper":"The label describes the fields name"}},{"type":"FormInput","field":"validation","config":{"label":"Validation","helper":"The validation rules needed for this field"}},{"type":"FormInput","field":"placeholder","config":{"label":"Placeholder","helper":"The placeholder is what is shown in the field when no value is provided yet"}},{"type":"FormInput","field":"helper","config":{"label":"Help Text","helper":"Help text is meant to provide additional guidance on the field's value"}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Element Background color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"ColorSelect","field":"color","config":{"label":"Text color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"selector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"attr-value"}}],"editor-control":"FormInput","editor-component":"FormInput"},{"label":"Line Input","config":{"name":"last_name","type":"text","label":"Last Name","helper":null,"validation":null,"placeholder":null},"component":"FormInput","inspector":[{"type":"FormInput","field":"name","config":{"name":"Field Name","label":"Field Name","helper":"The data name for this field","validation":"regex:\/^(?:[A-Za-z])(?:[0-9A-Z_a-z])*(?:\\.[0-9A-Z_a-z]+)*$\/|required|not_in:null,break,case,catch,continue,debugger,default,delete,do,else,finally,for,function,if,in,instanceof,new,return,switch,this,throw,try,typeof,var,void,while,with,class,const,enum,export,extends,import,super"}},{"type":"FormMultiselect","field":"type","config":{"name":"Field Type","label":"Field Type","helper":"The type for this field","options":[{"value":"text","content":"Text"},{"value":"password","content":"Password"}]}},{"type":"FormInput","field":"label","config":{"label":"Field Label","helper":"The label describes the fields name"}},{"type":"FormInput","field":"validation","config":{"label":"Validation","helper":"The validation rules needed for this field"}},{"type":"FormInput","field":"placeholder","config":{"label":"Placeholder","helper":"The placeholder is what is shown in the field when no value is provided yet"}},{"type":"FormInput","field":"helper","config":{"label":"Help Text","helper":"Help text is meant to provide additional guidance on the field's value"}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Element Background color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"ColorSelect","field":"color","config":{"label":"Text color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"selector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"attr-value"}}],"editor-control":"FormInput","editor-component":"FormInput"},{"label":"Submit","config":{"name":"save","event":"submit","label":"Save","variant":"primary","fieldValue":null},"component":"FormButton","inspector":[{"type":"FormInput","field":"label","config":{"label":"Field Label","helper":"The label describes the button's text"}},{"type":"FormInput","field":"name","config":{"label":"Field Name","helper":"The name of the button","validation":"regex:\/^(?:[A-Za-z])(?:[0-9A-Z_a-z])*(?:\\.[0-9A-Z_a-z]+)*$\/|required|not_in:null,break,case,catch,continue,debugger,default,delete,do,else,finally,for,function,if,in,instanceof,new,return,switch,this,throw,try,typeof,var,void,while,with,class,const,enum,export,extends,import,super"}},{"type":"FormInput","field":"fieldValue","config":{"label":"Field Value","helper":"The value being submitted"}},{"type":"FormMultiselect","field":"variant","config":{"label":"Variant","helper":"The variant determines the appearance of the button","options":[{"value":"primary","content":"Primary"},{"value":"secondary","content":"Secondary"},{"value":"success","content":"Success"},{"value":"danger","content":"Danger"},{"value":"warning","content":"Warning"},{"value":"info","content":"Info"},{"value":"light","content":"Light"},{"value":"dark","content":"Dark"},{"value":"link","content":"Link"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"selector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"attr-value"}}],"editor-control":"FormSubmit","editor-component":"FormButton"}]}],"computed":[],"custom_css":null,"created_at":"2019-05-07T17:27:27+00:00","updated_at":"2021-08-13T20:05:42+00:00","status":"ACTIVE","key":null,"watchers":[{"input_data":"{}","script_configuration":"{\"dataSource\":\"1\",\"dataMapping\":[{\"key\":\"response\",\"value\":\"data.0.data\"}],\"endpoint\":\"ListAll\",\"outboundConfig\":[{\"type\":\"PARAM\",\"key\":\"pmql\",\"value\":\"{{ pmql }}\"}]}","synchronous":false,"name":"data source test","watching":"first_name","script":{"id":"data_source-1","name":"Persons","description":null,"endpoints":{"ListAll":{"url":"http:\/\/pmdev.nossl\/api\/1.0\/collections\/1\/records","body":null,"method":"GET","params":[{"id":0,"key":"pmql","value":null,"required":false}],"headers":[],"purpose":"ListAll","updated":"2021-08-13 18:51:17","testData":"{}","description":"Collection list all records"},"GetRecord":{"url":"http:\/\/pmdev.nossl\/api\/1.0\/collections\/1\/records\/{{record_id}}","body":null,"method":"GET","headers":[],"purpose":"GetRecord","testData":"{}","description":"Collection get record by record id"},"CreateRecord":{"url":"http:\/\/pmdev.nossl\/api\/1.0\/collections\/1\/records","body":null,"method":"POST","headers":[],"purpose":"CreateRecord","testData":"{}","description":"Collection create record"},"DeleteRecord":{"url":"http:\/\/pmdev.nossl\/api\/1.0\/collections\/1\/records\/{{record_id}}","body":null,"method":"DELETE","headers":[],"purpose":"DeleteRecord","testData":"{}","description":"Collection delete record"},"UpdateRecord":{"url":"http:\/\/pmdev.nossl\/api\/1.0\/collections\/1\/records\/{{record_id}}","body":null,"method":"PUT","headers":[],"purpose":"UpdateRecord","testData":"{}","description":"Collection update record"}},"mappings":null,"authtype":"OAUTH2_BEARER","credentials":"eyJpdiI6Im5aaFRMXC9mUXR4XC96enFXS1NqTjhcL0E9PSIsInZhbHVlIjoiNDJZeVBYZUZiY011eklZK2NvT0ZiYzZKaEpYWjVuMWVCOUFNQlF2S1RSd2oyMWxEK3IyNU9GNUdTODc5enBMOXJHa3ZISEJ1QUpkUTAzQlhHYXZReVZ2OWlIWTRrSzE4V05hVjF2UE5UU1VGMEs0WFFiUlRzNHY3ZmVUTU5VbWNsZnl1XC9rcm52cWxheVBtNHIyZnRWbTVWM3RXZnI5RTVEZHBCTlo0RDlcL3FTNWQ1ekM4MGgwS0pCOEIyclNUWkhMcjhsVWhEdUR0QzFLY1VDM0VnQXhBNjZQOEp0RVFDWFRJbnVHQVRlN1dKVkJIcGRERTNsU3FoRmV5Vm1SbFptZE5WSVJTNjArNmwxbnFpVVlKbmJaRE5vd1RZK01JNlBFbVNldzhKZnNCd1wvSEdaUWkrdVR5Rkg3cTUwWFVIZGRjdXNsQUY1c2plaElIQlNUZnpBa3o3T3BJM3BtWlhJbFBTWEYwNTJCN01HZ1wvZEZjVDgrc3kzcFgzTEVcL2llbXp1TG1uSDhLV2YzSXJ1S0pjQTdRUldrakl3MThqYUwweXhDeFdZTWZSWkxMdnZwUkt2Qm1QdVR2ckhsUW5vVHdNOTN4MlR1RkNvOTVHcHVUOVJ0K3ZZb0RGYmJ4WXFiMFhUSmZJS1kxWGFoZzB2UnQ0Zk5DMmRJdkYrSUNuQmk2VldRRUxzSVo5TFk3V0ZoMUNwR3BvY2JEU2VRdVV6dWlpQyt5dHZTUGhRT1B4Um1GRHl1ZkJhbFZ4c1pcL1NITFFSK3dTSjVvV2g5OXJWSnlQV0g4bUhQOTdOZ1wvUmNtb0wwbjR1eDVtVHdBc1BpSHpDbXFBMDlDRGdCblNjNGxNMFhydldRbU9CTkk0T2lpQSt2VnZ6Visxb1JMZHp4QXVGZjR0aTIrdzc0Myt3NWxNZUMzOE4rQ3BlemxKZ0drbVNqc1ZqNDdGUytCaGxVVnpLRHZMZm9HWHNQS01kQ2dhWWFlTVVaK2M0cFJoWktBNnd5c0oyMGU4a1RwVGdGVUV5RjdlckNxWDdQSGhQNEJ0OTB1dGJcL1ZDS3pHNTQ5Y1Y1Q2pnUkpXOXJJV0lqQ1pLRDZXcGpFbmxjdnR2RjJ5TlJkeUhlaWlxWFFGRjVxaGhwR1NvYTNOYzJlSEVBZ2NkWDJoN3FHN3JcL21uemxtZjNYWFNNbk1SVmRmK0VBbDJ3Zm5YbW9FQjEzeUlhaVBCWlNtVEpSXC9xalBpVVpsd2t3aHhIZWlRMk1SNFpEdGNRT1NHVWY5YTRqYVo2MFBTQVwvcVplMnZXc25Rc1laNmhvNEdQZ1FTRjJYdURLVFNzRklwb3RPc0RMeWV3QUtzUkluZXpoMDVnQjI0K0lcL3R3V3B5ODZUZjF4a25qWlhMNHFLMVVSR3FpTnBSTkRsT2s3em10NzhXbW9yaTdXU2FlbXVZdUY3TUowNWpGenoyTnl3UEpjOVBIellOWTlYZGtleUFrbkVzejRFamc2N1JcL2xyNEhydGoxVUJzbFpZSDhlSlJpV3l3MEo1MHBISWd5UGhpZW1BVDhCSGxFVWltcFNkemtHc3VWVnE3cGpkbWloOGx3b3dGODJBZXgzeFNYTlUwWVlYaW5YWkdKcGx6RW5BVWJ5SVVocUZOSnFHMzNKZFpkVncyXC83Vkx6NXJcL1lwYkdON0tYcjhLRnNQNm9UUDVFR3RMUGFEYkJKU3RXS0xoUDlZMnNPRWJhMCtCSHdVMjdweDg2cE4rQnpiQVllaEs3NmlQRU1jK3FGQjhzPSIsIm1hYyI6ImZhMjJjM2E4MDRhMmRlZDRiZjdjYWE1ZTQ3ZTI3Zjc2NjNlZjUyYjM2YTAwZGVmNTJjODUxZDA1OWIyOTBkNjcifQ==","status":"ACTIVE","data_source_category_id":"2","created_at":"2021-08-13T18:50:49+00:00","updated_at":"2021-08-13T18:51:17+00:00","title":"Persons","key":"package-data-sources\/data-source-task-service"},"script_id":"1","script_key":"package-data-sources\/data-source-task-service","uid":"16288850222531"},{"input_data":"{}","script_configuration":"{}","synchronous":false,"name":"script watcher test","watching":"last_name","script":{"id":"script-8","key":null,"title":"Watcher Script","description":"Test","language":"php","code":"<?php \nreturn [\"ok\" => \"test\"];","timeout":60,"run_as_user_id":2,"created_at":"2021-08-13T20:04:34+00:00","updated_at":"2021-08-13T20:05:07+00:00","status":"ACTIVE","script_category_id":"1","script_executor_id":3},"script_id":"8","script_key":null,"output_variable":"output","uid":"16288851395792"}],"categories":[]}],"screen_categories":[],"scripts":[{"id":1,"key":"connector-send-email\/processmaker-communication-email-send","title":"Email Send","description":"Send an email","language":"PHP","code":"<?php\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Exception\\ServerException;\n\n\/\/ Rest client\n$client = new Client([\n    'base_uri' => getenv('HOST_URL'),\n    'verify' => false,\n    'defaults' => ['verify' => false]\n    ]);\n\ntry {\n    \/\/ Call to send an email\n    $response = $client->request('POST', '\/plugins\/email\/send', [\n        'form_params' => [\n            'email' => $config['email'],\n            'name' => $config['targetName'],\n            'subject' => $config['subject'],\n            'screenRef' => $config['screenRef'],\n            'users' => $config['users'],\n            'groups' => $config['groups'],\n            'addEmails' => $config['addEmails'],\n            'type' => $config['type'],\n            'textBody' => $config['textBody'],\n            'json_data' => json_encode($data),\n            'requestRecipients' => \n                isset($config['requestRecipients']) ? $config['requestRecipients'] : []\n        ]\n    ]);\n} catch(ServerException $e) {\n    throw new \\Exception($e->getBody());\n}\n\nreturn [];\n","timeout":60,"run_as_user_id":2,"created_at":"2021-08-13T18:36:37+00:00","updated_at":"2021-08-13T18:36:37+00:00","status":"ACTIVE","script_category_id":"2","script_executor_id":3,"categories":[{"id":2,"name":"Sed nostrum facilis deleniti quidem deleniti sapiente.","status":"INACTIVE","is_system":0,"created_at":"2021-08-13T18:36:37+00:00","updated_at":"2021-08-13T18:36:37+00:00","pivot":{"assignable_id":1,"category_id":2,"category_type":"ProcessMaker\\Models\\ScriptCategory"}}]},{"id":6,"key":null,"title":"Script 01","description":"Test","language":"php","code":"<?\n\n    return ['first_name' => 'John'];","timeout":60,"run_as_user_id":2,"created_at":"2019-05-07T16:43:39+00:00","updated_at":"2021-08-13T20:00:49+00:00","status":"ACTIVE","script_category_id":null,"script_executor_id":3,"categories":[]},{"id":7,"key":null,"title":"Script 02","description":"Test","language":"php","code":"<?\n\n    return ['last_name' => 'Doe'];","timeout":60,"run_as_user_id":2,"created_at":"2019-05-07T16:44:22+00:00","updated_at":"2021-08-13T20:00:49+00:00","status":"ACTIVE","script_category_id":null,"script_executor_id":3,"categories":[]},{"id":8,"key":null,"title":"Watcher Script","description":"Test","language":"php","code":"<?php \nreturn [\"ok\" => \"test\"];","timeout":60,"run_as_user_id":2,"created_at":"2021-08-13T20:04:34+00:00","updated_at":"2021-08-13T20:05:07+00:00","status":"ACTIVE","script_category_id":"1","script_executor_id":3,"categories":[{"id":1,"name":"Uncategorized","status":"ACTIVE","is_system":0,"created_at":"2021-08-13T18:36:37+00:00","updated_at":"2021-08-13T18:36:37+00:00","pivot":{"assignable_id":8,"category_id":1,"category_type":"ProcessMaker\\Models\\ScriptCategory"}}]}],"environment_variables":[]}