Repository navigation
Expand file tree
/
Copy pathprocess_with_script_watcher.json
More file actions
1 lines (1 loc) · 14 KB
/
Copy pathprocess_with_script_watcher.json
File metadata and controls
1 lines (1 loc) · 14 KB
1
{"type":"process_package","version":"1","process":{"id":6,"process_category_id":"2","user_id":2,"description":"test","name":"test4","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":"2020-10-08T19:30:10+00:00","updated_at":"2020-10-08T19:32:07+00:00","start_events":[{"id":"node_1","name":"Start Event","config":"{\"web_entry\":null}","ownerProcessId":"ProcessId","eventDefinitions":[],"ownerProcessName":"ProcessName","allowInterstitial":"false"}],"warnings":null,"self_service_tasks":[],"signal_events":[],"has_timer_start_events":false,"notifications":{"requester":{"started":false,"canceled":false,"completed":false},"assignee":{"started":false,"canceled":false,"completed":false},"participants":{"started":false,"canceled":false,"completed":false}},"task_notifications":{},"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\" pm:allowInterstitial=\"false\" pm:config=\"{"web_entry":null}\">\n <bpmn:outgoing>node_4<\/bpmn:outgoing>\n <\/bpmn:startEvent>\n <bpmn:task id=\"node_2\" name=\"Form Task\" pm:screenRef=\"7\" pm:allowInterstitial=\"false\" pm:assignmentLock=\"false\" pm:allowReassignment=\"false\" pm:config=\"{"web_entry":null}\">\n <bpmn:incoming>node_4<\/bpmn:incoming>\n <bpmn:outgoing>node_5<\/bpmn:outgoing>\n <\/bpmn:task>\n <bpmn:endEvent id=\"node_3\" name=\"End Event\">\n <bpmn:incoming>node_5<\/bpmn:incoming>\n <\/bpmn:endEvent>\n <bpmn:sequenceFlow id=\"node_4\" sourceRef=\"node_1\" targetRef=\"node_2\"\/>\n <bpmn:sequenceFlow id=\"node_5\" sourceRef=\"node_2\" targetRef=\"node_3\"\/>\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=\"100\" y=\"100\" width=\"36\" height=\"36\"\/>\n <\/bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"node_2_di\" bpmnElement=\"node_2\">\n <dc:Bounds x=\"220\" y=\"80\" width=\"116\" height=\"76\"\/>\n <\/bpmndi:BPMNShape>\n <bpmndi:BPMNShape id=\"node_3_di\" bpmnElement=\"node_3\">\n <dc:Bounds x=\"430\" y=\"100\" width=\"36\" height=\"36\"\/>\n <\/bpmndi:BPMNShape>\n <bpmndi:BPMNEdge id=\"node_4_di\" bpmnElement=\"node_4\">\n <di:waypoint x=\"118\" y=\"118\"\/>\n <di:waypoint x=\"278\" y=\"118\"\/>\n <\/bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge id=\"node_5_di\" bpmnElement=\"node_5\">\n <di:waypoint x=\"278\" y=\"118\"\/>\n <di:waypoint x=\"448\" y=\"118\"\/>\n <\/bpmndi:BPMNEdge>\n <\/bpmndi:BPMNPlane>\n <\/bpmndi:BPMNDiagram>\n<\/bpmn:definitions>\n"},"process_categories":[{"id":2,"name":"Uncategorized","status":"ACTIVE","is_system":0,"created_at":"2020-09-18T22:09:24+00:00","updated_at":"2020-09-18T22:09:24+00:00","pivot":{"assignable_id":6,"category_id":2,"category_type":"ProcessMaker\\Models\\ProcessCategory"}}],"screens":[{"id":7,"screen_category_id":"1","title":"screen with watcher","description":"test","type":"FORM","config":[{"name":"screen with watcher","items":[{"label":"Line Input","config":{"icon":"far fa-square","name":"form_input_1","type":"text","label":"New Input","helper":null,"readonly":false,"dataFormat":"string","validation":[],"placeholder":null},"component":"FormInput","inspector":[{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information.","validation":"regex:\/^(?:[A-Z_.a-z])(?:[0-9A-Z_.a-z])*$\/|required"}},{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the field's name"}},{"type":"FormMultiselect","field":"dataFormat","config":{"name":"Data Type","label":"Data Type","helper":"The data type specifies what kind of data is stored in the variable.","options":[{"value":"string","content":"Text"},{"value":"int","content":"Integer"},{"value":"currency","content":"Currency"},{"value":"percentage","content":"Percentage"},{"value":"float","content":"Decimal"},{"value":"datetime","content":"Datetime"},{"value":"date","content":"Date"},{"value":"password","content":"Password"}],"validation":"required"}},{"type":{"extends":{"props":["label","error","options","helper","name","value","selectedControl"],"mixins":[{"props":{"validation":{"type":null},"validationData":{"type":null},"validationField":{"type":null},"validationMessages":{"type":null}},"watch":{"validationData":{"deep":true}},"methods":[]}],"methods":[],"computed":[],"_compiled":true,"components":{"Multiselect":{"name":"vue-multiselect","props":{"name":{"default":null},"limit":{"default":99999},"loading":{"default":false},"disabled":{"default":false},"tabindex":{"default":0},"limitText":[],"maxHeight":{"default":300},"showLabels":{"default":true},"selectLabel":{"default":"Press enter to select"},"deselectLabel":{"default":"Press enter to remove"},"openDirection":{"default":null},"selectedLabel":{"default":"Selected"},"showNoOptions":{"default":true},"showNoResults":{"default":true},"selectGroupLabel":{"default":"Press enter to select group"},"deselectGroupLabel":{"default":"Press enter to deselect group"}},"mixins":[{"props":{"id":{"default":null},"max":{"type":[null,null],"default":false},"label":[],"value":{"type":null},"options":{"required":true},"trackBy":[],"multiple":{"default":false},"taggable":{"default":false},"blockKeys":[],"allowEmpty":{"default":true},"groupLabel":[],"resetAfter":{"default":false},"searchable":{"default":true},"customLabel":[],"groupSelect":{"default":false},"groupValues":[],"placeholder":{"default":"Select option"},"tagPosition":{"default":"top"},"hideSelected":{"default":false},"optionsLimit":{"default":1000},"clearOnSelect":{"default":true},"closeOnSelect":{"default":true},"internalSearch":{"default":true},"preselectFirst":{"default":false},"preserveSearch":{"default":false},"tagPlaceholder":{"default":"Press enter to create a tag"}},"watch":[],"methods":[],"computed":[]},{"props":{"showPointer":{"default":true},"optionHeight":{"default":40}},"watch":[],"methods":[],"computed":[]}],"computed":[],"_compiled":true,"beforeCreate":[null],"staticRenderFns":[]}},"inheritAttrs":false,"staticRenderFns":[]},"computed":[],"_compiled":true,"staticRenderFns":[]},"field":"dataMask","config":{"name":"Data Format","label":"Data Format","helper":"The data format for the selected type."}},{"type":"ValidationSelect","field":"validation","config":{"label":"Validation Rules","helper":"The validation rules needed for this field"}},{"type":"FormInput","field":"placeholder","config":{"label":"Placeholder Text","helper":"The placeholder is what is shown in the field when no value is provided yet"}},{"type":"FormInput","field":"helper","config":{"label":"Helper Text","helper":"Help text is meant to provide additional guidance on the field's value"}},{"type":"FormCheckbox","field":"readonly","config":{"label":"Read Only","helper":null}},{"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":"ColorSelect","field":"bgcolor","config":{"label":"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":{"props":["value"],"watch":{"value":{"immediate":true}},"methods":[],"_scopeId":"data-v-0f3a4ebc","computed":{"effectiveValue":[]},"_compiled":true,"components":{"MonacoEditor":{"name":"MonacoEditor","model":{"event":"change"},"props":{"theme":{"default":"vs"},"amdRequire":[]},"watch":{"options":{"deep":true}},"methods":[]}},"staticRenderFns":[]},"field":"defaultValue","config":{"label":"Default Value","helper":"Takes precedence over value set in data."}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormInput","editor-component":"FormInput"},{"label":"Submit Button","config":{"icon":"fas fa-share-square","name":null,"event":"submit","label":"New Submit","variant":"primary","fieldValue":null,"defaultSubmit":true},"component":"FormButton","inspector":[{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the button's text"}},{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information."}},{"type":"FormMultiselect","field":"event","config":{"label":"Type","helper":"Choose whether the button should submit the form","options":[{"value":"submit","content":"Submit Button"},{"value":"script","content":"Regular Button"}]}},{"type":"FormInput","field":"fieldValue","config":{"label":"Value","helper":"The value being submitted"}},{"type":"FormMultiselect","field":"variant","config":{"label":"Button Variant Style","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":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormButton","editor-component":"FormButton"}]}],"computed":[],"custom_css":null,"created_at":"2020-10-08T19:30:58+00:00","updated_at":"2020-10-08T19:31:58+00:00","status":"ACTIVE","key":null,"watchers":[{"input_data":"{}","script_configuration":"{}","synchronous":false,"name":"test","watching":"form_input_1","script":{"id":"script-4","key":null,"title":"cap","description":"asdf","language":"php","code":"<?php \n\/* \n * Welcome to ProcessMaker 4 Script Editor \n * To access Environment Variables use get_env(\"ENV_VAR_NAME\") \n * To access Request Data use $data \n * To access Configuration Data use $config \n * To preview your script, click the Run button using the provided input and config data \n * Return an array and it will be merged with the processes data \n * Example API to retrieve user email by their ID $api->users()->getUserById(1)['email'] \n * API Documentation https:\/\/github.com\/ProcessMaker\/sdk-php#documentation-for-api-endpoints \n *\/\n\n$txt = isset($data['txt']) ? $data['txt'] : 'nodat';\nreturn ['cap' => strtoupper($txt)];","timeout":60,"run_as_user_id":2,"created_at":"2020-10-06T18:46:05+00:00","updated_at":"2020-10-06T18:47:52+00:00","status":"ACTIVE","script_category_id":"1","script_executor_id":4},"script_id":"4","script_key":null,"output_variable":"watcher","uid":"16021855108191"}],"categories":[{"id":1,"name":"Uncategorized","status":"ACTIVE","is_system":0,"created_at":"2020-09-18T22:09:24+00:00","updated_at":"2020-09-18T22:09:24+00:00","pivot":{"assignable_id":7,"category_id":1,"category_type":"ProcessMaker\\Models\\ScreenCategory"}}]}],"screen_categories":[],"scripts":[{"id":4,"key":null,"title":"cap","description":"asdf","language":"php","code":"<?php \n\/* \n * Welcome to ProcessMaker 4 Script Editor \n * To access Environment Variables use get_env(\"ENV_VAR_NAME\") \n * To access Request Data use $data \n * To access Configuration Data use $config \n * To preview your script, click the Run button using the provided input and config data \n * Return an array and it will be merged with the processes data \n * Example API to retrieve user email by their ID $api->users()->getUserById(1)['email'] \n * API Documentation https:\/\/github.com\/ProcessMaker\/sdk-php#documentation-for-api-endpoints \n *\/\n\n$txt = isset($data['txt']) ? $data['txt'] : 'nodat';\nreturn ['cap' => strtoupper($txt)];","timeout":60,"run_as_user_id":2,"created_at":"2020-10-06T18:46:05+00:00","updated_at":"2020-10-06T18:47:52+00:00","status":"ACTIVE","script_category_id":"1","script_executor_id":4,"categories":[{"id":1,"name":"Uncategorized","status":"ACTIVE","is_system":0,"created_at":"2020-09-18T22:09:24+00:00","updated_at":"2020-09-18T22:09:24+00:00","pivot":{"assignable_id":4,"category_id":1,"category_type":"ProcessMaker\\Models\\ScriptCategory"}}]}],"environment_variables":[]}