From 207a442b94595b2e33d892a34ad1d528f9800e6c Mon Sep 17 00:00:00 2001 From: Giovani Lopez Date: Fri, 3 Jan 2025 16:38:04 -0400 Subject: [PATCH] removed timer start event --- .../smart_surveys/process_helper_export.json | 2 +- .../smart_surveys/wizard-template-details.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/accounting-and-finance/smart_surveys/process_helper_export.json b/accounting-and-finance/smart_surveys/process_helper_export.json index 65eb8e9..473b640 100644 --- a/accounting-and-finance/smart_surveys/process_helper_export.json +++ b/accounting-and-finance/smart_surveys/process_helper_export.json @@ -1 +1 @@ -{"type":"process_package","version":"2","root":"9da19ea8-55d6-45bc-85df-5c46c1e61141","name":"Smart Surveys Helper","export":{"9da19ea8-55d6-45bc-85df-5c46c1e61141":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ProcessExporter","type":"Process","type_human":"Process","type_plural":"Processes","type_human_plural":"Processes","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\Process","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[{"type":"manager","uuid":"9cdea8e7-782d-401a-986e-1e53dfd272a8","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\UserExporter","modelClass":"ProcessMaker\\Models\\User","fallbackMatches":{"email":"giovani+dev1217@processmaker.com","username":"giovani+dev1217@processmaker.com"},"name":"","discard":false},{"type":"interstitial_screen","uuid":"9cdea8e8-d24c-4414-a353-adcd34029001","meta":{"path":"\/bpmn:definitions\/bpmn:process[1]\/bpmn:startEvent"},"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScreenExporter","modelClass":"ProcessMaker\\Models\\Screen","fallbackMatches":{"key":"interstitial","title":"Screen Interstitial"},"name":"Screen Interstitial","discard":false},{"type":"screens","uuid":"9da12f88-7c56-41ad-980f-8031c47ae895","meta":{"path":"\/bpmn:definitions\/bpmn:process[1]\/bpmn:task"},"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScreenExporter","modelClass":"ProcessMaker\\Models\\Screen","fallbackMatches":{"key":null,"title":"SG - Helper Screen"},"name":"SG - Helper Screen","discard":false},{"type":"scripts","uuid":"9da135ae-f28c-4df0-b479-3cbb5ede4dc1","meta":{"path":"\/bpmn:definitions\/bpmn:process[1]\/bpmn:scriptTask"},"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","modelClass":"ProcessMaker\\Models\\Script","fallbackMatches":{"title":"SG - Helper Create Collections"},"name":"SG - Helper Create Collections","discard":false},{"type":"scripts","uuid":"9db1383f-fd14-47c6-a5b1-554241353f7c","meta":{"path":"\/bpmn:definitions\/bpmn:process[2]\/bpmn:scriptTask"},"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","modelClass":"ProcessMaker\\Models\\Script","fallbackMatches":{"title":"SG - Register Answers"},"name":"SG - Register Answers","discard":false},{"type":"scripts","uuid":"9db12ea1-eb06-4752-9581-5ffd6849e79a","meta":{"path":"\/bpmn:definitions\/bpmn:process[3]\/bpmn:scriptTask"},"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","modelClass":"ProcessMaker\\Models\\Script","fallbackMatches":{"title":"SG - Close Surveys"},"name":"SG - Close Surveys","discard":false},{"type":"signal","uuid":"signal-catch_survey_response","meta":"catch_survey_response","exporterClass":"ProcessMaker\\ImportExport\\Exporters\\SignalExporter","modelClass":"ProcessMaker\\ImportExport\\Psudomodels\\Signal","fallbackMatches":[],"name":"catch_survey_response","discard":false},{"type":"process_launchpad","uuid":"9da1a16b-503b-4618-b23c-d6c61ec707ef","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ProcessLaunchpadExporter","modelClass":"ProcessMaker\\Models\\ProcessLaunchpad","fallbackMatches":[],"name":"Setting","discard":false}],"name":"Smart Surveys Helper","description":"Survey Generator Helper","process_manager":"Giovani+dev1217 Trial instance","process_manager_id":1,"attributes":{"id":33,"uuid":"9da19ea8-55d6-45bc-85df-5c46c1e61141","process_category_id":3,"user_id":5,"bpmn":"\n\n \n \n node_24<\/bpmn:outgoing>\n <\/bpmn:startEvent>\n \n node_24<\/bpmn:incoming>\n node_33<\/bpmn:outgoing>\n <\/bpmn:task>\n \n node_37<\/bpmn:incoming>\n <\/bpmn:endEvent>\n \n \n node_33<\/bpmn:incoming>\n node_37<\/bpmn:outgoing>\n <\/bpmn:scriptTask>\n \n \n \n \n \n \n <\/bpmn:process>\n \n \n \n \n <\/bpmn:collaboration>\n \n \n node_79<\/bpmn:outgoing>\n \n <\/bpmn:startEvent>\n \n node_79<\/bpmn:incoming>\n node_97<\/bpmn:outgoing>\n <\/bpmn:scriptTask>\n \n node_97<\/bpmn:incoming>\n <\/bpmn:endEvent>\n <\/bpmn:process>\n \n \n \n node_128<\/bpmn:incoming>\n node_140<\/bpmn:outgoing>\n <\/bpmn:scriptTask>\n \n node_140<\/bpmn:incoming>\n <\/bpmn:endEvent>\n \n node_128<\/bpmn:outgoing>\n \n R\/2024-12-18T19:25:39.000Z\/P1D<\/bpmn:timeCycle>\n <\/bpmn:timerEventDefinition>\n <\/bpmn:startEvent>\n <\/bpmn:process>\n \n \n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n <\/bpmndi:BPMNPlane>\n <\/bpmndi:BPMNDiagram>\n<\/bpmn:definitions>\n","description":"Survey Generator Helper","name":"Smart Surveys Helper","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":"2024-12-02 21:26:11","updated_at":"2024-12-18 20:02:16","updated_by":3,"start_events":"[{\"id\": \"node_2\", \"name\": \"Start\", \"config\": \"{\\\"web_entry\\\":null}\", \"ownerProcessId\": \"ProcessId\", \"eventDefinitions\": [], \"ownerProcessName\": \"ProcessName\", \"allowInterstitial\": \"true\", \"interstitialScreenRef\": \"1\"}, {\"id\": \"node_58\", \"name\": \"New Survey Response\", \"ownerProcessId\": \"Process_1\", \"eventDefinitions\": [{\"$type\": \"signalEventDefinition\", \"signalRef\": \"catch_survey_response\"}], \"ownerProcessName\": \"\"}, {\"id\": \"node_145\", \"name\": \"Daily\", \"ownerProcessId\": \"Process_2\", \"eventDefinitions\": [{\"$type\": \"timerEventDefinition\"}], \"ownerProcessName\": \"\"}]","warnings":null,"self_service_tasks":"[]","svg":"<\/marker><\/marker><\/marker><\/marker><\/defs>Configure\u00a0Process<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Start<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Configure<\/tspan>Finish<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>End<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Create<\/tspan>collections<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Close\u00a0Expired\u00a0Surveys<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Close\u00a0Expired<\/tspan>Surveys<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>End<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Daily<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Register\u00a0Survey\u00a0Response<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Update\u00a0Survey<\/tspan>Execution<\/tspan>Status<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Response\u00a0Registered<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>New\u00a0Survey\u00a0Response<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g>
\\n
<\/div>\\n

We're getting the next task for you...<\/p>\\n<\/div>\", \"interactive\": true, \"renderVarHtml\": false}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"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\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}]}]","computed":null,"custom_css":null,"created_at":"2024-08-27 23:28:25","updated_at":"2024-12-17 14:35:28","status":"ACTIVE","key":"interstitial","watchers":null,"translations":null,"is_template":0,"asset_type":"GUIDED_HELPER_PROCESS"},"extraAttributes":{"translatedLanguages":[]},"references":[]},"9da12f88-7c56-41ad-980f-8031c47ae895":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScreenExporter","type":"Screen","type_human":"Screen","type_plural":"Screens","type_human_plural":"Screens","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\Screen","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"SG - Helper Screen","description":"SG - Helper Screen","process_manager":"","process_manager_id":null,"attributes":{"id":108,"uuid":"9da12f88-7c56-41ad-980f-8031c47ae895","title":"SG - Helper Screen","description":"SG - Helper Screen","type":"FORM","config":"[{\"name\": \"SG - Helper Screen\", \"items\": [{\"items\": [[{\"label\": \"Rich Text\", \"config\": {\"icon\": \"fas fa-pencil-ruler\", \"label\": null, \"content\": \"



<\/p>\", \"interactive\": true, \"renderVarHtml\": false}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"type\": \"FormCheckbox\", \"field\": \"renderVarHtml\", \"config\": {\"label\": \"Render HTML from a Variable\", \"value\": null, \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}, {\"label\": \"Rich Text\", \"config\": {\"icon\": \"fas fa-pencil-ruler\", \"label\": null, \"content\": \"

{{errorMessage}}<\/div>\", \"interactive\": true, \"renderVarHtml\": true, \"conditionalHide\": \"uploadError\"}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"type\": \"FormCheckbox\", \"field\": \"renderVarHtml\", \"config\": {\"label\": \"Render HTML from a Variable\", \"value\": null, \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}, {\"items\": [[{\"items\": [[{\"label\": \"Rich Text\", \"config\": {\"icon\": \"fas fa-pencil-ruler\", \"label\": null, \"content\": \"

Smart Surveys<\/p>\\n

Let’s set up the process to work for you. Complete this guided setup wizard once, and you’ll be ready to share it with collaborators:<\/p>\", \"interactive\": true, \"renderVarHtml\": false, \"customCssSelector\": \"card-title\"}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"type\": \"FormCheckbox\", \"field\": \"renderVarHtml\", \"config\": {\"label\": \"Render HTML from a Variable\", \"value\": null, \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}, {\"items\": [[{\"label\": \"Image\", \"config\": {\"icon\": \"fas fa-image\", \"name\": \"one\", \"event\": \"submit\", \"image\": \"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFeSURBVHgBtZY9S8RAEIZnj0MQLaKFqNVpKYLaC2phKQpWdv4D01rlKmutRe5srfzojSI2Imgh2Ki5SsTCXGE\/N7PZ++C4m9xesg9MstnMzruzG3YCIICIHllAFpJF2CY2fT5ZCWzhQSbAoFQGFiLHAzNDW3iMnxY8wOwE0szzopWJaq453V7IPEjh7edL3+cmZ2BsZLSfW51sRSlVK5qOIC34738MR+E5RH\/f+vl091AS4FgVso2imf0+iLP+hJPHCy1iwTrF9jiDHcnr+v0Bzp5udHtqfMJWxC\/QZVvyUKi3CfaWNrVZssYZLEseWwursDg9T5s6C7cfz2BJiTNI\/XI4+JBoAaewQA3cUXct8MoC9+COKxY4BndcFui84HPjDvKnymeRbmFSYIapAf2IsbsAYVL+8qJ34aEXZcxOWVw4TDJxUzI7RHhPqhbBQ8zwd+GbAJ1ZRaaPl1Q8yxqNiuv0o\/XXeQAAAABJRU5ErkJggg==\", \"label\": \"Image\", \"value\": null, \"variant\": \"primary\", \"renderImage\": false}, \"component\": \"FormImage\", \"inspector\": [{\"type\": \"FormInput\", \"field\": \"name\", \"config\": {\"label\": \"Name\", \"helper\": \"Image name\"}}, {\"type\": \"ImageUpload\", \"field\": \"image\", \"config\": {\"label\": \"Upload\", \"helper\": \"Upload image\"}}, {\"type\": \"ImageVariable\", \"field\": \"imageName\", \"config\": {\"label\": \"Render from a variable name\", \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"height\", \"config\": {\"type\": \"number\", \"label\": \"Height\", \"helper\": \"Image height\"}}, {\"type\": \"FormInput\", \"field\": \"width\", \"config\": {\"type\": \"number\", \"label\": \"Width\", \"helper\": \"image width\"}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormImage\", \"editor-component\": \"FormImage\"}, {\"label\": \"Rich Text\", \"config\": {\"icon\": \"fas fa-pencil-ruler\", \"label\": null, \"content\": \"

Finish<\/p>\", \"interactive\": true, \"renderVarHtml\": false}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"type\": \"FormCheckbox\", \"field\": \"renderVarHtml\", \"config\": {\"label\": \"Render HTML from a Variable\", \"value\": null, \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}]], \"label\": \"Multicolumn \/ Table\", \"config\": {\"icon\": \"fas fa-table\", \"label\": null, \"options\": [{\"value\": \"1\", \"content\": \"12\"}], \"customCssSelector\": \"left-hint-current\"}, \"component\": \"FormMultiColumn\", \"container\": true, \"inspector\": [{\"type\": \"ContainerColumns\", \"field\": \"options\", \"config\": {\"label\": \"Column Width\", \"helper\": null, \"validation\": \"columns-adds-to-12\"}}, {\"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\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"MultiColumn\", \"editor-component\": \"MultiColumn\"}]], \"label\": \"Multicolumn \/ Table\", \"config\": {\"icon\": \"fas fa-table\", \"label\": null, \"options\": [{\"value\": \"1\", \"content\": \"12\"}], \"customCssSelector\": \"card-container-verification\"}, \"component\": \"FormMultiColumn\", \"container\": true, \"inspector\": [{\"type\": \"ContainerColumns\", \"field\": \"options\", \"config\": {\"label\": \"Column Width\", \"helper\": null, \"validation\": \"columns-adds-to-12\"}}, {\"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\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"MultiColumn\", \"editor-component\": \"MultiColumn\"}], [{\"label\": \"Image\", \"config\": {\"icon\": \"fas fa-image\", \"name\": \"line\", \"event\": \"submit\", \"image\": \"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGvCAYAAACadL+jAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAlSURBVHgB7cQxDQAwCAAwMv\/WJgELWABEcLZH42f1iyVJknTeAF2JBvTB8e8OAAAAAElFTkSuQmCC\", \"label\": \"Image\", \"value\": null, \"variant\": \"primary\", \"renderImage\": false}, \"component\": \"FormImage\", \"inspector\": [{\"type\": \"FormInput\", \"field\": \"name\", \"config\": {\"label\": \"Name\", \"helper\": \"Image name\"}}, {\"type\": \"ImageUpload\", \"field\": \"image\", \"config\": {\"label\": \"Upload\", \"helper\": \"Upload image\"}}, {\"type\": \"ImageVariable\", \"field\": \"imageName\", \"config\": {\"label\": \"Render from a variable name\", \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"height\", \"config\": {\"type\": \"number\", \"label\": \"Height\", \"helper\": \"Image height\"}}, {\"type\": \"FormInput\", \"field\": \"width\", \"config\": {\"type\": \"number\", \"label\": \"Width\", \"helper\": \"image width\"}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormImage\", \"editor-component\": \"FormImage\"}], [{\"label\": \"Image\", \"config\": {\"icon\": \"fas fa-image\", \"name\": \"check\", \"event\": \"submit\", \"image\": \"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAYAAADHl1ErAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAsVSURBVHgB5Vy9bxzXEZ95eyHv6BQ8SZZF2oGOQDoXPPdOTBa2StNNkE5UlcCNqBRpefoLRBYJkkpSFSCNpHSGC56DACmCQCRgdw50QhJRkkUdHTjiHXX7xjO793bf7u19733RP0Di7u3H7f5u3sy8eTODMAE8oupitgZFB2GVUBeBcJEAiv5RKtjnIsAxIVaA4BgU7SutKi7BQS0L+yuYP4YxA2FMODyprqGjP2Zy1oCoCGkAcR+QyuSqB0u5fBnGgJESxiQVlIKrQHqLJWgRRosKIpS1VjeZvAqMCCMhzJMmpG0eXmsdTjvgF3yIpPYb6D5G\/XpfPlzKLVWi9zosOK6z6Dq46GBmtQHuigKU+662uzEC3teEu6OQulQJ60QUv8SxC\/ouEt2vZTND6x\/Rg\/On7hpq2EBUH8R1X\/Nby0R4LU2JS4UwefiFU32LCDbjx4joC\/6\/tJR7swwjxJP6iw2H1FUC2ogfY0m+k9ZQHZow\/0HxdlxHdXtI0W\/8RwzBKmosEEKBLeFiq6SwhUQ4RoKKJjogpfZZqvY739ctIeLV2KGKUqp0cS5\/F4bAwISJVOVewzZovWV\/7kuUs5n0QoGl1LiRPIT6glHyd5N0VTviFMDO\/+fVzUFVwkCEycMg6j3eLFi3qhC51+JDzx+ucH3EltKTHteFL+I\/1OHJi03WcduxH4ifVa0PMkT7Juz5d9Wizuh7YJGlgXbr807J\/tXGRFQE4uTyvzsuqV2bjCo\/y0ndLbF1vW6dXlEN95OLP764D32gL8KELMroPUOAWD7S7s1LC2\/uRM6rVa8T6NK4iEpAhX\/F3UsL5yPP9aR2tMVD8pbZR9GNr931fkjrmbA4WTIEVQP5F8oHX+YPVbrdxf8aJ1qG3vPvnvMIydwzQ7Rf0lQvJyWRxf7Nuk2WSJVC\/XCKyBLwTEM\/fPrqKDBMQow8u2d9QYwULNKPnD0hspcbdpWwVgXvk2X\/ak9Pq7fi1nLawIq\/9NZ8\/qbZb46GPcsY9GQIOhLmuQ51kZpkspqKnR1WvQkzAPENX82pG8Y4JZF2Mq\/e6+RydBySnp9lWUPRWTZZuVMepjNClkBmIrlT2pNnl315F9VofCLWtXlK4Y263u50j7aEif8SGWZa37B1lkgWe+bphGnGCQ4tyTTO7IpOcwGCoaoBtmT20u7yxCEZ11viZy1nLwTkPatXt1mySjDDEI\/\/Yvb8DbP\/pPZix\/hpYjl56K4kDc1ECWPLYg1FrIhTao55PtaMkyUQSbKtZ857x9By2lJoo0XCmtL1yOzzlGPTTFi9gCC7DhN0SFOFSBLPRd8zevnw5BsOT6k9c5wFYz0+1VOtNxHHM7jhHXt2L8P0rJAlEEmy39cnB8tmH9FpMQARwiSaYDueEp4x2zIUITLZPiugNXtoSsDRPiZSZ58dIQwVBZNTka5QVKsFDdPtmA4DdGDbdjU4RGWNqqiUBYR58SMKo5W2dPENz6h0+ZChma3ZAhEaOV\/KvGCnh4CwpmX0oemBLV2oZ8c5HRS8unXdljJblzEhm8F5ZoNZXjPbHA6+E57srp0lRd8OcSnjYGgwwoRMs+25Ff5qj26aU6xcyp5bMSc8rR2Ji1GAHwDEzXhr\/nze7D+rHVWNsBgXw5MwXq7fCC+istn2rebskPXk1RP4\/Vd\/hN\/8\/bfe32q92tf1ImW2VeQpU6D8CZXHkUeYg\/hBcFWDHphN1mtXYUYgZP3uqz\/A1\/\/7l7cvf\/\/09Z+hXxhiBEj6vtl2wOdISbybrFyHVwtOObjY0mvTDEPWSaMW+dyQ1w9Ygj4221lecDbbvN5ZFKOgarUw4sAx+n07VgQzMBzbkSV4+41lGAAF40bkmQuUhJcmsrVGUbHYBYS5IGuKPki5Ux+66URWLpODX\/70FzAY3DWzpbU+MNtIqqi0sgKEmldbzEGNU01YN7I+ffdX8PbCQBLGeix8d6RQwtiBX2UXA1fDE3V4UOEqTClGSZZA6XDRVztUMdvkUl6x7xE4pY6bCQJmOKX6a9RkCVCpy8G2dsLlNxYixaawYPZdJ4htez4JTBnGQZaALWLbd0f25MnsXMqeDwKK9ufTgHGRZdCOiwyMAJ\/9+3PvBc\/NnYOPfvIhv1AWhsG4yeqE1Am7X\/kL\/PXwb8G+OI+fvvvrgUmbJrIEPaUK9AObLMF\/vfld8gt3w7SRJVBmpURgB8rsz\/tBkiQNQtqEyaqYDZsTiWa0lTA5CAPgyjsfJX7eD2mTlixJ4zLb7DmEFpOwwn4rBH6G0uF0iCyW+8HPl96HK6zok9ALadMwDEnrx2bbcUPCNOlvFR\/8NjgRsRAepMcwIK688+FApE2LziJrwm3PteVzFZ8rhSdSX6mMcfRL2jQpeJ4aBe8en2sre\/7IFFoT7jAuNih6JW3arKFW4XTIDq4KVygBxHpdB7Hck3mVNzGxp7WXj1JID4fP\/vO558wmQYh4efpyilyHcE0jiRuVFCQz2xrCcPUw6CZp0+Rn2WsaJ6dhXMwEVz23wiUrcNgmpj0sOpEWx6TIEnDAMFj44Dh+EK42wVWPsEiwHyFY+JBlJSs7b2j0QtokyZLhaGfrRNdqfY48wmxi4ktNmmAXUkQn0iZLlqySYclsN7MQC\/5eSGTg6dvE2AkY2azaSVPKBEmkTZosmdlI6Y3ZV6CuhsdCvRbEfOKJdERqJcyvOCrxDbchZfzjm3\/Cly+\/hJyTg58tvz8xsgR2WmonLiIZiOxG7Jn8MEl34mVzL1dKzOtpXT86uzkW0XT6Z\/Wj20Htp6YHlxYuBIYwMvm2EzDkAnt9zs40PnPQ7q6drWQXyhLSjn1qhLDWlMUwnXE5K4VOdgrQWQE7qlZxmZ32JbWfXXNcbSmLpyxKOmPaBmCS8KrxvLojH1KbEC3Ddjbj17QQJoxGUxbVbTvR7CwNTSldtCtbeMYTSJedsmojMYCYzTpb7cpJZGiKRYEZB5GO1HlGy4SwYqes2kgkzFPySEE2cbwIQMyvLYWzBnl2Hkkls+9liFtlQuLAtqtq61jNFi8nsQsxPVfjlPYorbYw4wIHGk7mcN1EZJol2Q\/N4XiZUBydq9li5SQ649yzXY05\/uJZkjR5VpssL53er19vIlomlIQeC0w7F2KyJS35lfvTi7jk9FI4m4Su65JJNYXyRfbyk+gD1nM3ptHl8FaAtL7RiSw5x64F7Xy\/HiE10ZRx7FqjljYGCdI4USQ1HYm3kRCysBGtX++Enle+hRhsuOu2pLFOixSgy4NJeFekbdCF4DRgpGopd2EtQpaULmaiktUPWf41fSLexkCQ1J7Fm5Ohu+WA10BoLJN2IUCTu1vLZnbiTUda2960tpHo7TsGQJuhl9gMqNkDZy2hnUtqaEdU8\/ulaEPmxAXrip4UfPJ3DYg27Vk6dnXy56W42b7fV+9gN+cxRxLuSz+ypFZb7ZqOJLW96QcDExY+WGIzoJ7aYUmmtiQfK8RVHrYrfsEnXLbPE2I8pxnwkQv6MZKkNrwuxzvZ2feViEO8l5nX8A31teX5C0Mt7AxNmKBDzy6vvZ6LeHd5Pp\/aClSbZ2jfHS\/Wr2IYpEKYQZfeOxXp9+WCelCfg3IaLf2ktan0I0MNm0nR4FF0x0uVMAPRVQqd60nt9cJv9luKmr6sjsuLEA4ct\/b\/8h1kUlDMEFyWvq8EWOzU2nSUbQRHQphBOFSHV\/LdYCwlQObOzLUlTYJIHSFudGsp2icO2OqV21nKUWBshNnw9U+jGPZlVUwg5VlKLsedXLGS8pct6UMewsfS99WlxkEarU0HwfcWdRHF3iKn9wAAAABJRU5ErkJggg==\", \"label\": \"Image\", \"value\": null, \"variant\": \"primary\", \"renderImage\": false, \"customCssSelector\": \"check\"}, \"component\": \"FormImage\", \"inspector\": [{\"type\": \"FormInput\", \"field\": \"name\", \"config\": {\"label\": \"Name\", \"helper\": \"Image name\"}}, {\"type\": \"ImageUpload\", \"field\": \"image\", \"config\": {\"label\": \"Upload\", \"helper\": \"Upload image\"}}, {\"type\": \"ImageVariable\", \"field\": \"imageName\", \"config\": {\"label\": \"Render from a variable name\", \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"height\", \"config\": {\"type\": \"number\", \"label\": \"Height\", \"helper\": \"Image height\"}}, {\"type\": \"FormInput\", \"field\": \"width\", \"config\": {\"type\": \"number\", \"label\": \"Width\", \"helper\": \"image width\"}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormImage\", \"editor-component\": \"FormImage\"}, {\"label\": \"Rich Text\", \"config\": {\"icon\": \"fas fa-pencil-ruler\", \"label\": null, \"content\": \"

Setup complete<\/p>\\n

Almost finished! You’re ready to launch.<\/p>\", \"interactive\": true, \"renderVarHtml\": false, \"customCssSelector\": \"message\"}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"type\": \"FormCheckbox\", \"field\": \"renderVarHtml\", \"config\": {\"label\": \"Render HTML from a Variable\", \"value\": null, \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}, {\"label\": \"Submit Button\", \"config\": {\"icon\": \"fas fa-share-square\", \"name\": null, \"event\": \"submit\", \"label\": \"SAVE AND FINISH\", \"loading\": false, \"tooltip\": [], \"variant\": \"primary\", \"fieldValue\": null, \"loadingLabel\": \"Loading...\", \"defaultSubmit\": true, \"customCssSelector\": \"btn-bx1\"}, \"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.\", \"validation\": \"regex:\/^(?:[A-Za-z])(?:[0-9A-Z_.a-z])*(? Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormSubmit\", \"editor-component\": \"FormButton\"}]], \"label\": \"Multicolumn \/ Table\", \"config\": {\"icon\": \"fas fa-table\", \"label\": null, \"options\": [{\"value\": \"1\", \"content\": \"5\"}, {\"value\": \"2\", \"content\": \"2\"}, {\"value\": \"3\", \"content\": \"5\"}], \"customCssSelector\": \"container\"}, \"component\": \"FormMultiColumn\", \"container\": true, \"inspector\": [{\"type\": \"ContainerColumns\", \"field\": \"options\", \"config\": {\"label\": \"Column Width\", \"helper\": null, \"validation\": \"columns-adds-to-12\"}}, {\"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\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"MultiColumn\", \"editor-component\": \"MultiColumn\"}, {\"items\": [[], []], \"label\": \"Multicolumn \/ Table\", \"config\": {\"icon\": \"fas fa-table\", \"label\": null, \"options\": [{\"value\": \"1\", \"content\": \"6\"}, {\"value\": \"2\", \"content\": \"6\"}]}, \"component\": \"FormMultiColumn\", \"container\": true, \"inspector\": [{\"type\": \"ContainerColumns\", \"field\": \"options\", \"config\": {\"label\": \"Column Width\", \"helper\": null, \"validation\": \"columns-adds-to-12\"}}, {\"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\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"MultiColumn\", \"editor-component\": \"MultiColumn\"}]], \"label\": \"Multicolumn \/ Table\", \"config\": {\"icon\": \"fas fa-table\", \"label\": null, \"options\": [{\"value\": \"1\", \"content\": \"12\"}], \"customCssSelector\": \"body-container\"}, \"component\": \"FormMultiColumn\", \"container\": true, \"inspector\": [{\"type\": \"ContainerColumns\", \"field\": \"options\", \"config\": {\"label\": \"Column Width\", \"helper\": null, \"validation\": \"columns-adds-to-12\"}}, {\"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\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"MultiColumn\", \"editor-component\": \"MultiColumn\"}], \"order\": 1}]","computed":"[]","custom_css":"[selector='body-container'] {\r\n width: 1109px;\r\n margin: auto;\r\n}\r\n\r\n[selector='btn-bx1'] {\r\n margin-top: 1em;\r\n text-align: left;\r\n}\r\n\r\n[selector='btn-bx1'] button {\r\n background-color: #2381C8;\r\n border-radius: 8px;\r\n border-color: #2381C8;\r\n width: 170px;\r\n text-transform: none;\r\n height: 40px;\r\n font-weight: bold;\r\n padding: 0px 15px 0px 15px;\r\n}\r\n\r\n[selector='left-hint'] {\r\n height: 22px;\r\n width: 310px;\r\n padding: 0px 14px 0px 14px;\r\n margin: 10px 0px 10px 0px;\r\n}\r\n\r\n[selector='left-hint'] div {\r\n display: flex;\r\n}\r\n\r\n[selector='left-hint'] img {\r\n height: 24px;\r\n margin-right: 15px;\r\n}\r\n\r\n[selector='left-hint-current'] {\r\n background-color: #4EA075;\r\n height: 52px;\r\n width: 330px;\r\n border-radius: 10px;\r\n padding: 13px 12px 13px 12px;\r\n}\r\n\r\n[selector='left-hint-current'] div {\r\n display: flex;\r\n}\r\n\r\n[selector='left-hint-current'] img {\r\n height: 24px;\r\n margin-right: 15px;\r\n}\r\n\r\n[selector='left-hint-current'] p {\r\n font-size: 19px; \r\n line-height: 25.87px; \r\n font-weight: 600; \r\n color: white;\r\n}\r\n\r\n[selector='left-hint-done'] {\r\n height: 22px;\r\n width: 310px;\r\n padding: 0px 14px 0px 14px;\r\n margin: 10px 0px 10px 0px;\r\n}\r\n\r\n[selector='left-hint-done'] div {\r\n display: flex;\r\n}\r\n\r\n[selector='left-hint-done'] img {\r\n height: 20px;\r\n margin-right: 15px;\r\n}\r\n\r\n[selector='left-hint-done'] p {\r\n font-size: 16px; \r\n line-height: 21.79px; \r\n font-weight: 600; \r\n color: #4EA075;\r\n}\r\n\r\n[selector='left-hint-fill'] {\r\n height: 50px;\r\n width: 400px;\r\n padding: 13px 12px 13px 12px;\r\n}\r\n\r\n[selector='left-hint-fill'] div {\r\n display: flex;\r\n}\r\n\r\n[selector='left-hint-fill'] img {\r\n height: 50px;\r\n margin-right: 15px;\r\n}\r\n\r\n[selector='arrow-button'] {\r\n margin-top: 1em;\r\n text-align: center;\r\n}\r\n\r\n[selector='arrow-button'] button {\r\n background-color: #FFFFFF;\r\n border-radius: 68.75px;\r\n width: 50px;\r\n height: 50px;\r\n\r\n background-image: url(\/public-files\/PLG_assets\/Frame%201171275558.png);\r\n background-repeat: no-repeat;\r\n background-position: center;\r\n}\r\n\r\n[selector='check'] {\r\n text-align: center;\r\n}\r\n\r\n[selector='message'] {\r\n text-align: center;\r\n}","created_at":"2024-12-02 16:15:27","updated_at":"2024-12-06 00:40:04","status":"ACTIVE","key":null,"watchers":"[]","translations":null,"is_template":0,"asset_type":"GUIDED_HELPER_PROCESS"},"extraAttributes":{"translatedLanguages":[]},"references":{"uncategorized-category":true}},"9da135ae-f28c-4df0-b479-3cbb5ede4dc1":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","type":"Script","type_human":"Script","type_plural":"Scripts","type_human_plural":"Scripts","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\Script","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[{"type":"user","uuid":"9cdea8e7-782d-401a-986e-1e53dfd272a8","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\UserExporter","modelClass":"ProcessMaker\\Models\\User","fallbackMatches":{"email":"giovani+dev1217@processmaker.com","username":"giovani+dev1217@processmaker.com"},"name":"","discard":false},{"type":"executor","uuid":"9acb37b3-a8ed-49dc-b4de-f686ad4e286f","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExecutorExporter","modelClass":"ProcessMaker\\Models\\ScriptExecutor","fallbackMatches":{"title":"PHP Executor"},"name":"PHP Executor","discard":false}],"name":"SG - Helper Create Collections","description":"SG - Helper Create Collections","process_manager":"","process_manager_id":null,"attributes":{"id":39,"uuid":"9da135ae-f28c-4df0-b479-3cbb5ede4dc1","key":null,"title":"SG - Helper Create Collections","description":"SG - Helper Create Collections","language":"php","code":"users()->getUserById(1)['email'] \n * API Documentation https:\/\/github.com\/ProcessMaker\/docker-executor-php\/tree\/master\/docs\/sdk \n *\/\n\n\/*Init Guzzle (use endpoint) and set options *\/\n$guzzleClient = new \\GuzzleHttp\\Client(['base_uri'=> $_SERVER['HOST_URL'],'verify' => false]);\n$guzzleOptions['headers']['Accept'] = 'application\/json';\n$guzzleOptions['headers']['Authorization'] = 'Bearer ' . getenv('API_TOKEN');\n\n\/*Get Guided Template Collection Id*\/\n\n$guzzleApi = '\/api\/1.0\/collections\/guided-template';\n\ntry {\n $guidedTemplateId = $guzzleClient->request('GET', $guzzleApi, $guzzleOptions);\n $collectionId = json_decode($guidedTemplateId->getBody()->getContents());\n} catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n}\n\n\/\/ Get the helper process request ID stored in the process properties\n\n$process_launchpad_id = $data['process_launchpad_id'];\n$guzzleApi = '\/api\/1.0\/processes\/' . $process_launchpad_id;\n\n$res = $guzzleClient->request(\"GET\", $guzzleApi, $guzzleOptions);\n$process = json_decode($res->getBody(), true);\n\n\/* Add options for Guzzle request *\/\n$guzzleApi = '\/api\/1.0\/collections\/' . $collectionId . '\/records';\n\n\/* Check if helperProcessRequestId exists to update or create a new record *\/\nif(isset($process['properties']['helperProcessRequestId'])) {\n $helperProcessRequestId = $process['properties']['helperProcessRequestId'];\n\n $guzzleApi .= '?pmql=data.helperProcessRequestId%20=%20%22' . $helperProcessRequestId . '%22';\n \n try {\n $res = $guzzleClient->request('GET', $guzzleApi, $guzzleOptions);\n $existingRecordRes = json_decode($res->getBody(), true)[\"data\"];\n $existingRecordID = $existingRecordRes[0][\"id\"];\n $recordInfo['helperProcessRequestId'] = $helperProcessRequestId;\n\n \/* Edit options for Guzzle request *\/\n $guzzleApi = '\/api\/1.0\/collections\/' . $collectionId . '\/records\/' . $existingRecordID; \n $guzzleMethod = \"PUT\";\n } catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n} else {\n $recordInfo['helperProcessRequestId'] = $data[\"_request\"][\"id\"];\n $guzzleMethod = \"POST\";\n}\n\n$recordInfo[\"processName\"] = \"Smart Surveys\";\n$recordInfo[\"surveysCollectionId\"] = createCollection(\"Surveys\");\n$recordInfo[\"answersCollectionId\"] = createCollection(\"Surveys answers\");\n$recordInfo[\"whiteListCollectionId\"] = createCollection(\"Surveys invitees\");\n\n$guzzleOptions['json'] = $recordInfo;\n\n\/* Update or Save data on Collection *\/\ntry {\n $res = $guzzleClient->request($guzzleMethod, $guzzleApi, $guzzleOptions);\n} catch (\\Throwable $th) {\n return [\n 'errorCode' => $th->getCode(),\n 'errorMessage' => $th->getMessage()\n ];\n}\n\nif ($res->getStatusCode() == 201 || $res->getStatusCode() == 204) { \n return [\n \"setupComplete\" => \"yes\",\n \"helperProcessRequestId\" => $recordInfo['helperProcessRequestId']\n ];\n}\n\nfunction createCollection($title) {\n global $guzzleClient,$guzzleOptions;\n\n $date = new DateTime();\n $name = $title . \" \". $date->format('YmdHis');\n\n \/\/ screen fields here\n $screenData = [\n \"title\" => $name . \" edit\",\n \"type\" => \"FORM\",\n \"description\" => $name . \" edit\",\n \"projects\" => [],\n \"screen_category_id\" => \"1\",\n ];\n\n \/\/ screen view fields here\n $screenViewData = [\n \"title\" => $name . \" view\",\n \"type\" => \"DISPLAY\",\n \"description\" => $name . \" view\",\n \"projects\" => [],\n \"screen_category_id\" => \"1\",\n ];\n\n \/\/creates a new screen adn view Screen\n $editScreen = createScreenGlCode($screenData);\n $viewScreen = createScreenGlCode($screenViewData);\n\n \/\/create collection\n $creationGlCodeCollection = createCollectionGlColde($name, $editScreen, $viewScreen);\n\n $guzzleApi = '\/api\/1.0\/collections\/?filter=' . $name;\n try {\n $res = $guzzleClient->request('GET', $guzzleApi, $guzzleOptions);\n return $dataResult = json_decode($res->getBody(), true)[\"data\"][0][\"id\"];\n } catch (\\Throwable $th) {\n $response = [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n}\n\nfunction createScreenGlCode($screenData){\n global $guzzleClient,$guzzleOptions;\n\n $name =$screenData[\"title\"];\n $guzzleApi = '\/api\/1.0\/screens\/?filter='.$name;\n $res = $guzzleClient->request('GET', $guzzleApi, $guzzleOptions);\n $result = json_decode($res->getBody(), true)[\"data\"];\n\n if(count($result)>0){\n return $result[0]['id'];\n }else{\n try {\n $guzzleApi = '\/api\/1.0\/screens\/';\n $guzzleOptions['json'] = $screenData;\n $response = $guzzleClient->request('POST', $guzzleApi, $guzzleOptions);\n return $result = json_decode($response->getBody(), true)['id'];\n }catch (BadResponseException $e) {\n return [\n 'error' => [\n 'code' => $e->getCode(),\n 'message' => json_decode($e->getResponse()->getBody()->getContents(), true)\n ]\n ];\n }\n } \n}\n\nfunction createCollectionGlColde($name,$editScreen, $viewScreen){\n global $guzzleClient,$guzzleOptions;\n\n $guzzleApi = '\/api\/1.0\/collections';\n $params =[\n \"name\" => $name,\n \"description\" => $name,\n \"custom_title\" => \"My New collection\",\n \"create_screen_id\" => $editScreen,\n \"read_screen_id\" => $viewScreen,\n \"update_screen_id\" => $editScreen,\n \"signal_create\" => true,\n \"signal_update\" => true,\n \"signal_delete\" => true,\n ];\n\n $guzzleOptions['json'] = $params;\n try {\n $res = $guzzleClient->request('POST', $guzzleApi, $guzzleOptions);\n return $dataResult = json_decode($res->getBody(), true)[\"data\"];\n } catch (\\Throwable $th) {\n $response = [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n}","retry_wait_time":5,"retry_attempts":0,"timeout":60,"run_as_user_id":1,"created_at":"2024-12-02 16:32:39","updated_at":"2024-12-06 00:40:04","status":"ACTIVE","script_category_id":1,"script_executor_id":1,"is_template":0,"asset_type":"GUIDED_HELPER_PROCESS"},"extraAttributes":{"translatedLanguages":[]},"references":{"uncategorized-category":true}},"9acb37b3-a8ed-49dc-b4de-f686ad4e286f":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScriptExecutorExporter","type":"ScriptExecutor","type_human":"Script Executor","type_plural":"ScriptExecutors","type_human_plural":"Script Executors","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\ScriptExecutor","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"PHP Executor","description":"Default PHP Executor asdfsfdadsf","process_manager":"","process_manager_id":null,"attributes":{"id":1,"uuid":"9acb37b3-a8ed-49dc-b4de-f686ad4e286f","title":"PHP Executor","description":"Default PHP Executor asdfsfdadsf","language":"php","config":"RUN composer require aws\/aws-sdk-php:3.226.0","is_system":0,"created_at":"2023-12-07 19:07:15","updated_at":"2023-12-07 19:07:15"},"extraAttributes":{"translatedLanguages":[]},"references":[]},"9db1383f-fd14-47c6-a5b1-554241353f7c":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","type":"Script","type_human":"Script","type_plural":"Scripts","type_human_plural":"Scripts","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\Script","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[{"type":"user","uuid":"9cdea8e7-782d-401a-986e-1e53dfd272a8","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\UserExporter","modelClass":"ProcessMaker\\Models\\User","fallbackMatches":{"email":"giovani+dev1217@processmaker.com","username":"giovani+dev1217@processmaker.com"},"name":"","discard":false},{"type":"executor","uuid":"9acb37b3-a8ed-49dc-b4de-f686ad4e286f","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExecutorExporter","modelClass":"ProcessMaker\\Models\\ScriptExecutor","fallbackMatches":{"title":"PHP Executor"},"name":"PHP Executor","discard":false}],"name":"SG - Register Answers","description":"SG - Register Answers","process_manager":"","process_manager_id":null,"attributes":{"id":40,"uuid":"9db1383f-fd14-47c6-a5b1-554241353f7c","key":null,"title":"SG - Register Answers","description":"SG - Register Answers","language":"php","code":"users()->getUserById(1)['email'] \n * API Documentation https:\/\/github.com\/ProcessMaker\/docker-executor-php\/tree\/master\/docs\/sdk \n *\/\n$uuid = $data[\"uuid\"];\n$email = $data[\"email\"];\n$answersCollectionId = $data['answersCollectionId'];\n$whiteListCollectionId = $data['whiteListCollectionId'];\n\n\/*\/\n$uuid = \"810ee323-873b-089d-3fef-789c81bbf7c4\";\n$email = \"edwin.choque@processmaker.com\";\n\/*\/\n$pattern = \"\/\\question\\d+\/\";\n\nforeach($data as $key => $row) {\n if(preg_match($pattern, $key)) {\n $questions[$key] = $data[$key];\n }\n}\n\n\/*Init Guzzle (use endpoint) and set options *\/\n$guzzleClient = new \\GuzzleHttp\\Client(['base_uri'=> $_SERVER['APP_URL'],'verify' => false]);\n$guzzleOptions['headers']['Accept'] = 'application\/json';\n$guzzleOptions['headers']['Authorization'] = 'Bearer ' . getenv('API_TOKEN');\n\n\/\/$collectionId = $config['answersCollectionId'] ?? 10;\n\n$record = [\n \"uuid\" => $uuid\n];\n\n$record = array_merge($record, $questions);\n\n$result = postCollection($answersCollectionId, $record);\n\n$output[\"collectionRecordId\"] = $result[\"id\"];\n$output[\"collectionId\"] = $answersCollectionId;\n\n\/*\/\nUpdate survey participated.\n\/*\/\n\/\/$collectionId = 11; \/\/ Survey invitees\n\/\/$collectionId = $config['whiteListCollectionId'] ?? 11;\n\n$guzzleApi = '\/api\/1.0\/collections\/' . $whiteListCollectionId . '\/records?pmql=data.uuid=\"' . $uuid . '\" and data.email=\"' . $email . '\"';\n\ntry {\n $res = $guzzleClient->request('GET', $guzzleApi, $guzzleOptions);\n $record = json_decode($res->getBody(), true)[\"data\"][0][\"data\"];\n} catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n}\n\n$collectionRecordId = $record[\"id\"];\n$record[\"hasParticipated\"] = true;\n\n$result = putCollection($whiteListCollectionId, $record);\n\nreturn $output;\n\nfunction putCollection($collectionId, $params = \"\") {\n global $collectionRecordId, $guzzleClient, $guzzleOptions;\n\n $guzzleHttpMethod = \"PUT\";\n $guzzleApi = \"\/api\/1.0\/collections\/\" . $collectionId . \"\/records\/\" . $collectionRecordId;\n $guzzleOptions['json'] = $params;\n\n try {\n $guzzleResponse = $guzzleClient->request($guzzleHttpMethod, $guzzleApi, $guzzleOptions);\n $response = json_decode($guzzleResponse->getBody(), true);\n } catch (\\Throwable $th) {\n $response = [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n\n return $response;\n}\n\nfunction postCollection($collectionId, $params = \"\") {\n\n if(empty($collectionId)) { return null; }\n\n global $guzzleClient, $guzzleOptions;\n\n $guzzleHttpMethod = \"POST\";\n $guzzleApi = \"\/api\/1.0\/collections\/\" . $collectionId . \"\/records\";\n $guzzleOptions['json'] = $params;\n\n try {\n $guzzleResponse = $guzzleClient->request($guzzleHttpMethod, $guzzleApi, $guzzleOptions);\n $response = json_decode($guzzleResponse->getBody(), true);\n } catch (\\Throwable $th) {\n $response = [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n\n return $response;\n}","retry_wait_time":5,"retry_attempts":0,"timeout":60,"run_as_user_id":1,"created_at":"2024-12-10 15:33:04","updated_at":"2024-12-10 15:33:19","status":"ACTIVE","script_category_id":1,"script_executor_id":1,"is_template":0,"asset_type":"GUIDED_HELPER_PROCESS"},"extraAttributes":{"translatedLanguages":[]},"references":{"uncategorized-category":true}},"9db12ea1-eb06-4752-9581-5ffd6849e79a":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","type":"Script","type_human":"Script","type_plural":"Scripts","type_human_plural":"Scripts","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\Script","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[{"type":"data-source-scripts","uuid":"9db13f39-2b51-4327-8005-9c6350a0b378","meta":null,"exporterClass":"ProcessMaker\\Packages\\Connectors\\DataSources\\ImportExport\\ScriptExporter","modelClass":"ProcessMaker\\Packages\\Connectors\\DataSources\\Models\\Script","fallbackMatches":[],"name":"SG - Close Surveys","discard":false},{"type":"user","uuid":"9cdea8e7-782d-401a-986e-1e53dfd272a8","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\UserExporter","modelClass":"ProcessMaker\\Models\\User","fallbackMatches":{"email":"giovani+dev1217@processmaker.com","username":"giovani+dev1217@processmaker.com"},"name":"","discard":false},{"type":"executor","uuid":"9db13e81-448a-4681-89f4-fa317ffc52c2","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExecutorExporter","modelClass":"ProcessMaker\\Models\\ScriptExecutor","fallbackMatches":{"title":"Smart Surveys PHP"},"name":"Smart Surveys PHP","discard":false}],"name":"SG - Close Surveys","description":"SG - Close Surveys","process_manager":"","process_manager_id":null,"attributes":{"id":47,"uuid":"9db12ea1-eb06-4752-9581-5ffd6849e79a","key":null,"title":"SG - Close Surveys","description":"SG - Close Surveys","language":"php","code":"users()->getUserById(1)['email'] \n * API Documentation https:\/\/github.com\/ProcessMaker\/docker-executor-php\/tree\/master\/docs\/sdk \n *\/\n\/* Init Guzzle (use endpoint) and set options *\/\n\/* Main variables setup*\/\n\/* Variables to use API Calls*\/\n$guzzleClient = new \\GuzzleHttp\\Client([\n \"base_uri\" => $_SERVER[\"APP_URL\"],\n \"verify\" => false,\n]);\n$guzzleOptions[\"headers\"][\"Accept\"] = \"application\/json\";\n$guzzleOptions[\"headers\"][\"Authorization\"] = \"Bearer \" . getenv(\"API_TOKEN\");\n\n\/* Process ID definition *\/\n\/\/$processId = 184;\n$processId = $data[\"_request\"][\"process_id\"];\n\n\/* Get survey definitions and executions, process screen field is needed. *\/\n\n$guzzleApi = '\/api\/1.0\/requests?include=data&pmql=process_id=' . $processId . ' and ((data.process=\"Generate\" and status=\"COMPLETED\") or (data.process=\"Execute\" and status=\"ACTIVE\"))';\n\ntry {\n $res = $guzzleClient->request(\"GET\", $guzzleApi, $guzzleOptions);\n $dataResult = json_decode($res->getBody(), true)[\"data\"];\n} catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n}\n\n\/* Get expiration date from Survey definitions *\/\n\nforeach($dataResult as $item) {\n if($item[\"data\"][\"process\"] == \"Generate\") {\n $surveys[$item[\"data\"][\"uuid\"]] = $item[\"data\"][\"expirationDate\"];\n }\n}\n\n\/* Loop Survey executions with date expired *\/\n\nforeach($dataResult as $activeSurvey) {\n if($activeSurvey[\"data\"][\"process\"] == \"Execute\") {\n $expirationDate = $surveys[$activeSurvey[\"data\"][\"uuid\"]];\n $now = date(\"Y-m-d\");\n\n if($now > $expirationDate) {\n $apiTaskRequest = \"\/api\/1.0\/tasks?pmql=process_request_id=\" . $activeSurvey[\"id\"] . ' and status=\"ACTIVE\"';\n\n \/* We get the active tasks in each of the requests*\/\n\n try {\n $res2 = $guzzleClient->request(\"GET\", $apiTaskRequest, $guzzleOptions);\n $tasks = json_decode($res2->getBody(), true)[\"data\"];\n } catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n\n \/* Start update through API call*\/ \n\n foreach($tasks as $task) {\n $apiTaskUpdate = \"\/api\/1.0\/tasks\/\" . $task[\"id\"];\n $body[\"status\"] = \"COMPLETED\";\n $body[\"data\"][\"expired\"] = true;\n $guzzleOptions[\"json\"] = $body;\n\n try {\n $res3 = $guzzleClient->request(\"PUT\", $apiTaskUpdate, $guzzleOptions);\n \/\/$dataResult3 = json_decode($res3->getBody(), true)[\"data\"];\n } catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n }\n }\n }\n}","retry_wait_time":5,"retry_attempts":0,"timeout":60,"run_as_user_id":1,"created_at":"2024-12-10 15:06:11","updated_at":"2024-12-10 15:52:34","status":"ACTIVE","script_category_id":1,"script_executor_id":11,"is_template":0,"asset_type":null},"extraAttributes":{"translatedLanguages":[]},"references":{"uncategorized-category":true}},"9db13f39-2b51-4327-8005-9c6350a0b378":{"exporter":"ProcessMaker\\Packages\\Connectors\\DataSources\\ImportExport\\ScriptExporter","type":"DataConnectorScript","type_human":"Direct API Access For Script","type_plural":"DataConnectorScripts","type_human_plural":"Direct API Access For Scripts","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Packages\\Connectors\\DataSources\\Models\\Script","force_password_protect":false,"hidden":true,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"SG - Close Surveys","description":null,"process_manager":"","process_manager_id":null,"attributes":{"id":20,"uuid":"9db13f39-2b51-4327-8005-9c6350a0b378","script_id":47,"key":"242d6c8e-c691-48b0-8eeb-351992a1f7f6","enabled":0,"synchronously":1,"methods":"[\"POST\"]","data_types":"[\"FORM\"]","authentication":null,"authentication_config":"{\"password\": null, \"username\": null}","whitelist":"[]","created_at":"2024-12-10 15:52:34","updated_at":"2024-12-18 18:58:31"},"extraAttributes":{"translatedLanguages":[]},"references":[]},"9db13e81-448a-4681-89f4-fa317ffc52c2":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScriptExecutorExporter","type":"ScriptExecutor","type_human":"Script Executor","type_plural":"ScriptExecutors","type_human_plural":"Script Executors","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\ScriptExecutor","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"Smart Surveys PHP","description":"Smart Surveys PHP","process_manager":"","process_manager_id":null,"attributes":{"id":11,"uuid":"9db13e81-448a-4681-89f4-fa317ffc52c2","title":"Smart Surveys PHP","description":"Smart Surveys PHP","language":"php","config":null,"is_system":0,"created_at":"2024-12-10 15:50:34","updated_at":"2024-12-10 15:50:34"},"extraAttributes":{"translatedLanguages":[]},"references":[]},"signal-catch_survey_response":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\SignalExporter","type":"Signal","type_human":"Signal","type_plural":"Signals","type_human_plural":"Signals","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\ImportExport\\Psudomodels\\Signal","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[{"type":"data-source-webhook","uuid":"9db138dd-a7ae-4201-b580-a2c187567f24","meta":null,"exporterClass":"ProcessMaker\\Packages\\Connectors\\DataSources\\ImportExport\\WebhookExporter","modelClass":"ProcessMaker\\Packages\\Connectors\\DataSources\\Models\\Webhook","fallbackMatches":{"name":null},"name":"Webhook for signal: catch_survey_response","discard":false}],"name":"catch_survey_response","description":"","process_manager":"","process_manager_id":null,"attributes":{"id":"catch_survey_response","name":"catch_survey_response","detail":"","global":true},"extraAttributes":{"translatedLanguages":[]},"references":[]},"9db138dd-a7ae-4201-b580-a2c187567f24":{"exporter":"ProcessMaker\\Packages\\Connectors\\DataSources\\ImportExport\\WebhookExporter","type":"Webhook","type_human":"Webhook","type_plural":"Webhooks","type_human_plural":"Webhooks","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Packages\\Connectors\\DataSources\\Models\\Webhook","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"Webhook for signal: catch_survey_response","description":null,"process_manager":"","process_manager_id":null,"attributes":{"id":3,"uuid":"9db138dd-a7ae-4201-b580-a2c187567f24","name":null,"description":null,"method":"POST","key":"f5e89b4ea6ddb75f260730cb30492bfa","type":"signal","authentication":"NONE","config":"{\"event\": \"catch_survey_response\", \"password\": null, \"restrict\": [], \"security\": [], \"username\": null, \"payload_type\": \"FORM\"}","headers":"[]","payload":null,"target_variable":null,"whitelist":null,"image_name":null,"created_at":"2024-12-10 15:34:48","updated_at":"2024-12-18 20:01:53"},"extraAttributes":{"translatedLanguages":[]},"references":[]},"9da1a16b-503b-4618-b23c-d6c61ec707ef":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ProcessLaunchpadExporter","type":"LaunchpadSetting","type_human":"Launchpad Setting","type_plural":"LaunchpadSettings","type_human_plural":"Launchpad Settings","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\ProcessLaunchpad","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"Setting","description":null,"process_manager":"","process_manager_id":null,"attributes":{"id":12,"uuid":"9da1a16b-503b-4618-b23c-d6c61ec707ef","process_id":33,"user_id":5,"properties":"{\"icon\": \"Default Icon\", \"tabs\": [], \"screen_id\": 0, \"icon_label\": \"Default Icon\", \"screen_uuid\": \"\", \"screen_title\": \"Default Launchpad\", \"saved_chart_id\": 0, \"saved_chart_title\": \"Default Launchpad Chart\"}","created_at":"2024-12-02 21:33:54","updated_at":"2024-12-12 00:00:08"},"extraAttributes":{"translatedLanguages":[]},"references":[]}}} \ No newline at end of file +{"type":"process_package","version":"2","root":"9da19ea8-55d6-45bc-85df-5c46c1e61141","name":"Smart Surveys Helper","export":{"9da19ea8-55d6-45bc-85df-5c46c1e61141":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ProcessExporter","type":"Process","type_human":"Process","type_plural":"Processes","type_human_plural":"Processes","last_modified_by":"Giovani Lopez","last_modified_by_id":4,"model":"ProcessMaker\\Models\\Process","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[{"type":"manager","uuid":"9dc3d1ad-97c9-43b2-ac58-c95c1ec18c80","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\UserExporter","modelClass":"ProcessMaker\\Models\\User","fallbackMatches":{"email":"admin@processmaker.com","username":"admin"},"name":"","discard":false},{"type":"interstitial_screen","uuid":"9cdea8e8-d24c-4414-a353-adcd34029001","meta":{"path":"\/bpmn:definitions\/bpmn:process[1]\/bpmn:startEvent"},"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScreenExporter","modelClass":"ProcessMaker\\Models\\Screen","fallbackMatches":{"key":null,"title":"Screen Interstitial"},"name":"Screen Interstitial","discard":false},{"type":"screens","uuid":"9da12f88-7c56-41ad-980f-8031c47ae895","meta":{"path":"\/bpmn:definitions\/bpmn:process[1]\/bpmn:task"},"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScreenExporter","modelClass":"ProcessMaker\\Models\\Screen","fallbackMatches":{"key":null,"title":"SG - Helper Screen"},"name":"SG - Helper Screen","discard":false},{"type":"interstitial_screen","uuid":"9cdea8e8-d24c-4414-a353-adcd34029001","meta":{"path":"\/bpmn:definitions\/bpmn:process[3]\/bpmn:startEvent"},"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScreenExporter","modelClass":"ProcessMaker\\Models\\Screen","fallbackMatches":{"key":null,"title":"Screen Interstitial"},"name":"Screen Interstitial","discard":false},{"type":"scripts","uuid":"9da135ae-f28c-4df0-b479-3cbb5ede4dc1","meta":{"path":"\/bpmn:definitions\/bpmn:process[1]\/bpmn:scriptTask"},"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","modelClass":"ProcessMaker\\Models\\Script","fallbackMatches":{"title":"SG - Helper Create Collections"},"name":"SG - Helper Create Collections","discard":false},{"type":"scripts","uuid":"9db1383f-fd14-47c6-a5b1-554241353f7c","meta":{"path":"\/bpmn:definitions\/bpmn:process[2]\/bpmn:scriptTask"},"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","modelClass":"ProcessMaker\\Models\\Script","fallbackMatches":{"title":"SG - Register Answers"},"name":"SG - Register Answers","discard":false},{"type":"scripts","uuid":"9db12ea1-eb06-4752-9581-5ffd6849e79a","meta":{"path":"\/bpmn:definitions\/bpmn:process[3]\/bpmn:scriptTask"},"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","modelClass":"ProcessMaker\\Models\\Script","fallbackMatches":{"title":"SG - Close Surveys"},"name":"SG - Close Surveys","discard":false},{"type":"signal","uuid":"signal-catch_survey_response","meta":"catch_survey_response","exporterClass":"ProcessMaker\\ImportExport\\Exporters\\SignalExporter","modelClass":"ProcessMaker\\ImportExport\\Psudomodels\\Signal","fallbackMatches":[],"name":"catch_survey_response","discard":false},{"type":"process_launchpad","uuid":"9da1a16b-503b-4618-b23c-d6c61ec707ef","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ProcessLaunchpadExporter","modelClass":"ProcessMaker\\Models\\ProcessLaunchpad","fallbackMatches":[],"name":"Setting","discard":false}],"name":"Smart Surveys Helper","description":"Survey Generator Helper","process_manager":"Admin User","process_manager_id":1,"attributes":{"id":13,"uuid":"9da19ea8-55d6-45bc-85df-5c46c1e61141","process_category_id":2,"user_id":5,"bpmn":"\n\n \n \n node_24<\/bpmn:outgoing>\n <\/bpmn:startEvent>\n \n node_24<\/bpmn:incoming>\n node_33<\/bpmn:outgoing>\n <\/bpmn:task>\n \n node_37<\/bpmn:incoming>\n <\/bpmn:endEvent>\n \n \n node_33<\/bpmn:incoming>\n node_37<\/bpmn:outgoing>\n <\/bpmn:scriptTask>\n \n \n \n \n \n \n <\/bpmn:process>\n \n \n \n \n <\/bpmn:collaboration>\n \n \n node_79<\/bpmn:outgoing>\n \n <\/bpmn:startEvent>\n \n node_79<\/bpmn:incoming>\n node_97<\/bpmn:outgoing>\n <\/bpmn:scriptTask>\n \n node_97<\/bpmn:incoming>\n <\/bpmn:endEvent>\n <\/bpmn:process>\n \n \n \n node_148<\/bpmn:incoming>\n node_140<\/bpmn:outgoing>\n <\/bpmn:scriptTask>\n \n node_140<\/bpmn:incoming>\n <\/bpmn:endEvent>\n \n node_148<\/bpmn:outgoing>\n <\/bpmn:startEvent>\n <\/bpmn:process>\n \n \n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n \n \n <\/bpmndi:BPMNShape>\n \n \n \n <\/bpmndi:BPMNEdge>\n <\/bpmndi:BPMNPlane>\n <\/bpmndi:BPMNDiagram>\n<\/bpmn:definitions>","description":"Survey Generator Helper","name":"Smart Surveys Helper","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":"2024-12-02 21:26:11","updated_at":"2025-01-03 20:32:44","updated_by":4,"start_events":"[{\"id\": \"node_2\", \"name\": \"Start\", \"config\": \"{\\\"web_entry\\\":null}\", \"ownerProcessId\": \"ProcessId\", \"eventDefinitions\": [], \"ownerProcessName\": \"ProcessName\", \"allowInterstitial\": \"true\", \"interstitialScreenRef\": \"1\"}, {\"id\": \"node_58\", \"name\": \"New Survey Response\", \"ownerProcessId\": \"Process_1\", \"eventDefinitions\": [{\"$type\": \"signalEventDefinition\", \"signalRef\": \"catch_survey_response\"}], \"ownerProcessName\": \"\"}, {\"id\": \"node_147\", \"name\": \"Daily\", \"config\": \"{\\\"web_entry\\\":null}\", \"ownerProcessId\": \"Process_2\", \"eventDefinitions\": [], \"ownerProcessName\": \"\", \"allowInterstitial\": \"true\", \"interstitialScreenRef\": \"1\"}]","warnings":null,"self_service_tasks":"[]","svg":"<\/marker><\/marker><\/marker><\/marker><\/marker><\/marker><\/defs>Register\u00a0Survey\u00a0Response<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>New\u00a0Survey\u00a0Response<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Update\u00a0Survey<\/tspan>Execution<\/tspan>Status<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Response\u00a0Registered<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Configure\u00a0Process<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Configure<\/tspan>Finish<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>End<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Create<\/tspan>collections<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Start<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Close\u00a0Expired\u00a0Surveys<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>End<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Close\u00a0Expired<\/tspan>Surveys<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>Daily<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g>-<\/tspan><\/text><\/g><\/g><\/g><\/g><\/g><\/g><\/g><\/g>

\\n
<\/div>\\n

We're getting the next task for you...<\/p>\\n<\/div>\", \"interactive\": true, \"renderVarHtml\": false}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"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\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}]}]","computed":null,"custom_css":null,"created_at":"2024-08-27 23:28:25","updated_at":"2024-12-17 14:35:28","status":"ACTIVE","key":null,"watchers":null,"translations":null,"is_template":0,"asset_type":"GUIDED_HELPER_PROCESS"},"extraAttributes":{"translatedLanguages":[]},"references":[]},"9da12f88-7c56-41ad-980f-8031c47ae895":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScreenExporter","type":"Screen","type_human":"Screen","type_plural":"Screens","type_human_plural":"Screens","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\Screen","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"SG - Helper Screen","description":"SG - Helper Screen","process_manager":"","process_manager_id":null,"attributes":{"id":41,"uuid":"9da12f88-7c56-41ad-980f-8031c47ae895","title":"SG - Helper Screen","description":"SG - Helper Screen","type":"FORM","config":"[{\"name\": \"SG - Helper Screen\", \"items\": [{\"items\": [[{\"label\": \"Rich Text\", \"config\": {\"icon\": \"fas fa-pencil-ruler\", \"label\": null, \"content\": \"



<\/p>\", \"interactive\": true, \"renderVarHtml\": false}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"type\": \"FormCheckbox\", \"field\": \"renderVarHtml\", \"config\": {\"label\": \"Render HTML from a Variable\", \"value\": null, \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}, {\"label\": \"Rich Text\", \"config\": {\"icon\": \"fas fa-pencil-ruler\", \"label\": null, \"content\": \"

{{errorMessage}}<\/div>\", \"interactive\": true, \"renderVarHtml\": true, \"conditionalHide\": \"uploadError\"}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"type\": \"FormCheckbox\", \"field\": \"renderVarHtml\", \"config\": {\"label\": \"Render HTML from a Variable\", \"value\": null, \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}, {\"items\": [[{\"items\": [[{\"label\": \"Rich Text\", \"config\": {\"icon\": \"fas fa-pencil-ruler\", \"label\": null, \"content\": \"

Smart Surveys<\/p>\\n

Let’s set up the process to work for you. Complete this guided setup wizard once, and you’ll be ready to share it with collaborators:<\/p>\", \"interactive\": true, \"renderVarHtml\": false, \"customCssSelector\": \"card-title\"}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"type\": \"FormCheckbox\", \"field\": \"renderVarHtml\", \"config\": {\"label\": \"Render HTML from a Variable\", \"value\": null, \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}, {\"items\": [[{\"label\": \"Image\", \"config\": {\"icon\": \"fas fa-image\", \"name\": \"one\", \"event\": \"submit\", \"image\": \"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFeSURBVHgBtZY9S8RAEIZnj0MQLaKFqNVpKYLaC2phKQpWdv4D01rlKmutRe5srfzojSI2Imgh2Ki5SsTCXGE\/N7PZ++C4m9xesg9MstnMzruzG3YCIICIHllAFpJF2CY2fT5ZCWzhQSbAoFQGFiLHAzNDW3iMnxY8wOwE0szzopWJaq453V7IPEjh7edL3+cmZ2BsZLSfW51sRSlVK5qOIC34738MR+E5RH\/f+vl091AS4FgVso2imf0+iLP+hJPHCy1iwTrF9jiDHcnr+v0Bzp5udHtqfMJWxC\/QZVvyUKi3CfaWNrVZssYZLEseWwursDg9T5s6C7cfz2BJiTNI\/XI4+JBoAaewQA3cUXct8MoC9+COKxY4BndcFui84HPjDvKnymeRbmFSYIapAf2IsbsAYVL+8qJ34aEXZcxOWVw4TDJxUzI7RHhPqhbBQ8zwd+GbAJ1ZRaaPl1Q8yxqNiuv0o\/XXeQAAAABJRU5ErkJggg==\", \"label\": \"Image\", \"value\": null, \"variant\": \"primary\", \"renderImage\": false}, \"component\": \"FormImage\", \"inspector\": [{\"type\": \"FormInput\", \"field\": \"name\", \"config\": {\"label\": \"Name\", \"helper\": \"Image name\"}}, {\"type\": \"ImageUpload\", \"field\": \"image\", \"config\": {\"label\": \"Upload\", \"helper\": \"Upload image\"}}, {\"type\": \"ImageVariable\", \"field\": \"imageName\", \"config\": {\"label\": \"Render from a variable name\", \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"height\", \"config\": {\"type\": \"number\", \"label\": \"Height\", \"helper\": \"Image height\"}}, {\"type\": \"FormInput\", \"field\": \"width\", \"config\": {\"type\": \"number\", \"label\": \"Width\", \"helper\": \"image width\"}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormImage\", \"editor-component\": \"FormImage\"}, {\"label\": \"Rich Text\", \"config\": {\"icon\": \"fas fa-pencil-ruler\", \"label\": null, \"content\": \"

Finish<\/p>\", \"interactive\": true, \"renderVarHtml\": false}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"type\": \"FormCheckbox\", \"field\": \"renderVarHtml\", \"config\": {\"label\": \"Render HTML from a Variable\", \"value\": null, \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}]], \"label\": \"Multicolumn \/ Table\", \"config\": {\"icon\": \"fas fa-table\", \"label\": null, \"options\": [{\"value\": \"1\", \"content\": \"12\"}], \"customCssSelector\": \"left-hint-current\"}, \"component\": \"FormMultiColumn\", \"container\": true, \"inspector\": [{\"type\": \"ContainerColumns\", \"field\": \"options\", \"config\": {\"label\": \"Column Width\", \"helper\": null, \"validation\": \"columns-adds-to-12\"}}, {\"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\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"MultiColumn\", \"editor-component\": \"MultiColumn\"}]], \"label\": \"Multicolumn \/ Table\", \"config\": {\"icon\": \"fas fa-table\", \"label\": null, \"options\": [{\"value\": \"1\", \"content\": \"12\"}], \"customCssSelector\": \"card-container-verification\"}, \"component\": \"FormMultiColumn\", \"container\": true, \"inspector\": [{\"type\": \"ContainerColumns\", \"field\": \"options\", \"config\": {\"label\": \"Column Width\", \"helper\": null, \"validation\": \"columns-adds-to-12\"}}, {\"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\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"MultiColumn\", \"editor-component\": \"MultiColumn\"}], [{\"label\": \"Image\", \"config\": {\"icon\": \"fas fa-image\", \"name\": \"line\", \"event\": \"submit\", \"image\": \"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGvCAYAAACadL+jAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAlSURBVHgB7cQxDQAwCAAwMv\/WJgELWABEcLZH42f1iyVJknTeAF2JBvTB8e8OAAAAAElFTkSuQmCC\", \"label\": \"Image\", \"value\": null, \"variant\": \"primary\", \"renderImage\": false}, \"component\": \"FormImage\", \"inspector\": [{\"type\": \"FormInput\", \"field\": \"name\", \"config\": {\"label\": \"Name\", \"helper\": \"Image name\"}}, {\"type\": \"ImageUpload\", \"field\": \"image\", \"config\": {\"label\": \"Upload\", \"helper\": \"Upload image\"}}, {\"type\": \"ImageVariable\", \"field\": \"imageName\", \"config\": {\"label\": \"Render from a variable name\", \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"height\", \"config\": {\"type\": \"number\", \"label\": \"Height\", \"helper\": \"Image height\"}}, {\"type\": \"FormInput\", \"field\": \"width\", \"config\": {\"type\": \"number\", \"label\": \"Width\", \"helper\": \"image width\"}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormImage\", \"editor-component\": \"FormImage\"}], [{\"label\": \"Image\", \"config\": {\"icon\": \"fas fa-image\", \"name\": \"check\", \"event\": \"submit\", \"image\": \"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAYAAADHl1ErAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAsVSURBVHgB5Vy9bxzXEZ95eyHv6BQ8SZZF2oGOQDoXPPdOTBa2StNNkE5UlcCNqBRpefoLRBYJkkpSFSCNpHSGC56DACmCQCRgdw50QhJRkkUdHTjiHXX7xjO793bf7u19733RP0Di7u3H7f5u3sy8eTODMAE8oupitgZFB2GVUBeBcJEAiv5RKtjnIsAxIVaA4BgU7SutKi7BQS0L+yuYP4YxA2FMODyprqGjP2Zy1oCoCGkAcR+QyuSqB0u5fBnGgJESxiQVlIKrQHqLJWgRRosKIpS1VjeZvAqMCCMhzJMmpG0eXmsdTjvgF3yIpPYb6D5G\/XpfPlzKLVWi9zosOK6z6Dq46GBmtQHuigKU+662uzEC3teEu6OQulQJ60QUv8SxC\/ouEt2vZTND6x\/Rg\/On7hpq2EBUH8R1X\/Nby0R4LU2JS4UwefiFU32LCDbjx4joC\/6\/tJR7swwjxJP6iw2H1FUC2ogfY0m+k9ZQHZow\/0HxdlxHdXtI0W\/8RwzBKmosEEKBLeFiq6SwhUQ4RoKKJjogpfZZqvY739ctIeLV2KGKUqp0cS5\/F4bAwISJVOVewzZovWV\/7kuUs5n0QoGl1LiRPIT6glHyd5N0VTviFMDO\/+fVzUFVwkCEycMg6j3eLFi3qhC51+JDzx+ucH3EltKTHteFL+I\/1OHJi03WcduxH4ifVa0PMkT7Juz5d9Wizuh7YJGlgXbr807J\/tXGRFQE4uTyvzsuqV2bjCo\/y0ndLbF1vW6dXlEN95OLP764D32gL8KELMroPUOAWD7S7s1LC2\/uRM6rVa8T6NK4iEpAhX\/F3UsL5yPP9aR2tMVD8pbZR9GNr931fkjrmbA4WTIEVQP5F8oHX+YPVbrdxf8aJ1qG3vPvnvMIydwzQ7Rf0lQvJyWRxf7Nuk2WSJVC\/XCKyBLwTEM\/fPrqKDBMQow8u2d9QYwULNKPnD0hspcbdpWwVgXvk2X\/ak9Pq7fi1nLawIq\/9NZ8\/qbZb46GPcsY9GQIOhLmuQ51kZpkspqKnR1WvQkzAPENX82pG8Y4JZF2Mq\/e6+RydBySnp9lWUPRWTZZuVMepjNClkBmIrlT2pNnl315F9VofCLWtXlK4Y263u50j7aEif8SGWZa37B1lkgWe+bphGnGCQ4tyTTO7IpOcwGCoaoBtmT20u7yxCEZ11viZy1nLwTkPatXt1mySjDDEI\/\/Yvb8DbP\/pPZix\/hpYjl56K4kDc1ECWPLYg1FrIhTao55PtaMkyUQSbKtZ857x9By2lJoo0XCmtL1yOzzlGPTTFi9gCC7DhN0SFOFSBLPRd8zevnw5BsOT6k9c5wFYz0+1VOtNxHHM7jhHXt2L8P0rJAlEEmy39cnB8tmH9FpMQARwiSaYDueEp4x2zIUITLZPiugNXtoSsDRPiZSZ58dIQwVBZNTka5QVKsFDdPtmA4DdGDbdjU4RGWNqqiUBYR58SMKo5W2dPENz6h0+ZChma3ZAhEaOV\/KvGCnh4CwpmX0oemBLV2oZ8c5HRS8unXdljJblzEhm8F5ZoNZXjPbHA6+E57srp0lRd8OcSnjYGgwwoRMs+25Ff5qj26aU6xcyp5bMSc8rR2Ji1GAHwDEzXhr\/nze7D+rHVWNsBgXw5MwXq7fCC+istn2rebskPXk1RP4\/Vd\/hN\/8\/bfe32q92tf1ImW2VeQpU6D8CZXHkUeYg\/hBcFWDHphN1mtXYUYgZP3uqz\/A1\/\/7l7cvf\/\/09Z+hXxhiBEj6vtl2wOdISbybrFyHVwtOObjY0mvTDEPWSaMW+dyQ1w9Ygj4221lecDbbvN5ZFKOgarUw4sAx+n07VgQzMBzbkSV4+41lGAAF40bkmQuUhJcmsrVGUbHYBYS5IGuKPki5Ux+66URWLpODX\/70FzAY3DWzpbU+MNtIqqi0sgKEmldbzEGNU01YN7I+ffdX8PbCQBLGeix8d6RQwtiBX2UXA1fDE3V4UOEqTClGSZZA6XDRVztUMdvkUl6x7xE4pY6bCQJmOKX6a9RkCVCpy8G2dsLlNxYixaawYPZdJ4htez4JTBnGQZaALWLbd0f25MnsXMqeDwKK9ufTgHGRZdCOiwyMAJ\/9+3PvBc\/NnYOPfvIhv1AWhsG4yeqE1Am7X\/kL\/PXwb8G+OI+fvvvrgUmbJrIEPaUK9AObLMF\/vfld8gt3w7SRJVBmpURgB8rsz\/tBkiQNQtqEyaqYDZsTiWa0lTA5CAPgyjsfJX7eD2mTlixJ4zLb7DmEFpOwwn4rBH6G0uF0iCyW+8HPl96HK6zok9ALadMwDEnrx2bbcUPCNOlvFR\/8NjgRsRAepMcwIK688+FApE2LziJrwm3PteVzFZ8rhSdSX6mMcfRL2jQpeJ4aBe8en2sre\/7IFFoT7jAuNih6JW3arKFW4XTIDq4KVygBxHpdB7Hck3mVNzGxp7WXj1JID4fP\/vO558wmQYh4efpyilyHcE0jiRuVFCQz2xrCcPUw6CZp0+Rn2WsaJ6dhXMwEVz23wiUrcNgmpj0sOpEWx6TIEnDAMFj44Dh+EK42wVWPsEiwHyFY+JBlJSs7b2j0QtokyZLhaGfrRNdqfY48wmxi4ktNmmAXUkQn0iZLlqySYclsN7MQC\/5eSGTg6dvE2AkY2azaSVPKBEmkTZosmdlI6Y3ZV6CuhsdCvRbEfOKJdERqJcyvOCrxDbchZfzjm3\/Cly+\/hJyTg58tvz8xsgR2WmonLiIZiOxG7Jn8MEl34mVzL1dKzOtpXT86uzkW0XT6Z\/Wj20Htp6YHlxYuBIYwMvm2EzDkAnt9zs40PnPQ7q6drWQXyhLSjn1qhLDWlMUwnXE5K4VOdgrQWQE7qlZxmZ32JbWfXXNcbSmLpyxKOmPaBmCS8KrxvLojH1KbEC3Ddjbj17QQJoxGUxbVbTvR7CwNTSldtCtbeMYTSJedsmojMYCYzTpb7cpJZGiKRYEZB5GO1HlGy4SwYqes2kgkzFPySEE2cbwIQMyvLYWzBnl2Hkkls+9liFtlQuLAtqtq61jNFi8nsQsxPVfjlPYorbYw4wIHGk7mcN1EZJol2Q\/N4XiZUBydq9li5SQ649yzXY05\/uJZkjR5VpssL53er19vIlomlIQeC0w7F2KyJS35lfvTi7jk9FI4m4Su65JJNYXyRfbyk+gD1nM3ptHl8FaAtL7RiSw5x64F7Xy\/HiE10ZRx7FqjljYGCdI4USQ1HYm3kRCysBGtX++Enle+hRhsuOu2pLFOixSgy4NJeFekbdCF4DRgpGopd2EtQpaULmaiktUPWf41fSLexkCQ1J7Fm5Ohu+WA10BoLJN2IUCTu1vLZnbiTUda2960tpHo7TsGQJuhl9gMqNkDZy2hnUtqaEdU8\/ulaEPmxAXrip4UfPJ3DYg27Vk6dnXy56W42b7fV+9gN+cxRxLuSz+ypFZb7ZqOJLW96QcDExY+WGIzoJ7aYUmmtiQfK8RVHrYrfsEnXLbPE2I8pxnwkQv6MZKkNrwuxzvZ2feViEO8l5nX8A31teX5C0Mt7AxNmKBDzy6vvZ6LeHd5Pp\/aClSbZ2jfHS\/Wr2IYpEKYQZfeOxXp9+WCelCfg3IaLf2ktan0I0MNm0nR4FF0x0uVMAPRVQqd60nt9cJv9luKmr6sjsuLEA4ct\/b\/8h1kUlDMEFyWvq8EWOzU2nSUbQRHQphBOFSHV\/LdYCwlQObOzLUlTYJIHSFudGsp2icO2OqV21nKUWBshNnw9U+jGPZlVUwg5VlKLsedXLGS8pct6UMewsfS99WlxkEarU0HwfcWdRHF3iKn9wAAAABJRU5ErkJggg==\", \"label\": \"Image\", \"value\": null, \"variant\": \"primary\", \"renderImage\": false, \"customCssSelector\": \"check\"}, \"component\": \"FormImage\", \"inspector\": [{\"type\": \"FormInput\", \"field\": \"name\", \"config\": {\"label\": \"Name\", \"helper\": \"Image name\"}}, {\"type\": \"ImageUpload\", \"field\": \"image\", \"config\": {\"label\": \"Upload\", \"helper\": \"Upload image\"}}, {\"type\": \"ImageVariable\", \"field\": \"imageName\", \"config\": {\"label\": \"Render from a variable name\", \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"height\", \"config\": {\"type\": \"number\", \"label\": \"Height\", \"helper\": \"Image height\"}}, {\"type\": \"FormInput\", \"field\": \"width\", \"config\": {\"type\": \"number\", \"label\": \"Width\", \"helper\": \"image width\"}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormImage\", \"editor-component\": \"FormImage\"}, {\"label\": \"Rich Text\", \"config\": {\"icon\": \"fas fa-pencil-ruler\", \"label\": null, \"content\": \"

Setup complete<\/p>\\n

Almost finished! You’re ready to launch.<\/p>\", \"interactive\": true, \"renderVarHtml\": false, \"customCssSelector\": \"message\"}, \"component\": \"FormHtmlViewer\", \"inspector\": [{\"type\": \"FormTextArea\", \"field\": \"content\", \"config\": {\"rows\": 5, \"label\": \"Content\", \"value\": null, \"helper\": \"The HTML text to display\"}}, {\"type\": \"FormCheckbox\", \"field\": \"renderVarHtml\", \"config\": {\"label\": \"Render HTML from a Variable\", \"value\": null, \"helper\": null}}, {\"type\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormHtmlEditor\", \"editor-component\": \"FormHtmlEditor\"}, {\"label\": \"Submit Button\", \"config\": {\"icon\": \"fas fa-share-square\", \"name\": null, \"event\": \"submit\", \"label\": \"SAVE AND FINISH\", \"loading\": false, \"tooltip\": [], \"variant\": \"primary\", \"fieldValue\": null, \"loadingLabel\": \"Loading...\", \"defaultSubmit\": true, \"customCssSelector\": \"btn-bx1\"}, \"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.\", \"validation\": \"regex:\/^(?:[A-Za-z])(?:[0-9A-Z_.a-z])*(? Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"FormSubmit\", \"editor-component\": \"FormButton\"}]], \"label\": \"Multicolumn \/ Table\", \"config\": {\"icon\": \"fas fa-table\", \"label\": null, \"options\": [{\"value\": \"1\", \"content\": \"5\"}, {\"value\": \"2\", \"content\": \"2\"}, {\"value\": \"3\", \"content\": \"5\"}], \"customCssSelector\": \"container\"}, \"component\": \"FormMultiColumn\", \"container\": true, \"inspector\": [{\"type\": \"ContainerColumns\", \"field\": \"options\", \"config\": {\"label\": \"Column Width\", \"helper\": null, \"validation\": \"columns-adds-to-12\"}}, {\"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\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"MultiColumn\", \"editor-component\": \"MultiColumn\"}, {\"items\": [[], []], \"label\": \"Multicolumn \/ Table\", \"config\": {\"icon\": \"fas fa-table\", \"label\": null, \"options\": [{\"value\": \"1\", \"content\": \"6\"}, {\"value\": \"2\", \"content\": \"6\"}]}, \"component\": \"FormMultiColumn\", \"container\": true, \"inspector\": [{\"type\": \"ContainerColumns\", \"field\": \"options\", \"config\": {\"label\": \"Column Width\", \"helper\": null, \"validation\": \"columns-adds-to-12\"}}, {\"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\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"MultiColumn\", \"editor-component\": \"MultiColumn\"}]], \"label\": \"Multicolumn \/ Table\", \"config\": {\"icon\": \"fas fa-table\", \"label\": null, \"options\": [{\"value\": \"1\", \"content\": \"12\"}], \"customCssSelector\": \"body-container\"}, \"component\": \"FormMultiColumn\", \"container\": true, \"inspector\": [{\"type\": \"ContainerColumns\", \"field\": \"options\", \"config\": {\"label\": \"Column Width\", \"helper\": null, \"validation\": \"columns-adds-to-12\"}}, {\"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\": \"FormInput\", \"field\": \"conditionalHide\", \"config\": {\"label\": \"Visibility Rule\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"DeviceVisibility\", \"field\": \"deviceVisibility\", \"config\": {\"label\": \"Device Visibility\", \"helper\": \"This control is hidden until this expression is true\"}}, {\"type\": \"FormInput\", \"field\": \"customFormatter\", \"config\": {\"label\": \"Custom Format String\", \"helper\": \"Use the Mask Pattern format
Date ##\/##\/####
SSN ###-##-####
Phone (###) ###-####\", \"validation\": null}}, {\"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]*]\"}}, {\"type\": \"FormInput\", \"field\": \"ariaLabel\", \"config\": {\"label\": \"Aria Label\", \"helper\": \"Attribute designed to help assistive technology (e.g. screen readers) attach a label\"}}, {\"type\": \"FormInput\", \"field\": \"tabindex\", \"config\": {\"label\": \"Tab Order\", \"helper\": \"Order in which a user will move focus from one control to another by pressing the Tab key\", \"validation\": \"regex: [0-9]*\"}}], \"editor-control\": \"MultiColumn\", \"editor-component\": \"MultiColumn\"}], \"order\": 1}]","computed":"[]","custom_css":"[selector='body-container'] {\r\n width: 1109px;\r\n margin: auto;\r\n}\r\n\r\n[selector='btn-bx1'] {\r\n margin-top: 1em;\r\n text-align: left;\r\n}\r\n\r\n[selector='btn-bx1'] button {\r\n background-color: #2381C8;\r\n border-radius: 8px;\r\n border-color: #2381C8;\r\n width: 170px;\r\n text-transform: none;\r\n height: 40px;\r\n font-weight: bold;\r\n padding: 0px 15px 0px 15px;\r\n}\r\n\r\n[selector='left-hint'] {\r\n height: 22px;\r\n width: 310px;\r\n padding: 0px 14px 0px 14px;\r\n margin: 10px 0px 10px 0px;\r\n}\r\n\r\n[selector='left-hint'] div {\r\n display: flex;\r\n}\r\n\r\n[selector='left-hint'] img {\r\n height: 24px;\r\n margin-right: 15px;\r\n}\r\n\r\n[selector='left-hint-current'] {\r\n background-color: #4EA075;\r\n height: 52px;\r\n width: 330px;\r\n border-radius: 10px;\r\n padding: 13px 12px 13px 12px;\r\n}\r\n\r\n[selector='left-hint-current'] div {\r\n display: flex;\r\n}\r\n\r\n[selector='left-hint-current'] img {\r\n height: 24px;\r\n margin-right: 15px;\r\n}\r\n\r\n[selector='left-hint-current'] p {\r\n font-size: 19px; \r\n line-height: 25.87px; \r\n font-weight: 600; \r\n color: white;\r\n}\r\n\r\n[selector='left-hint-done'] {\r\n height: 22px;\r\n width: 310px;\r\n padding: 0px 14px 0px 14px;\r\n margin: 10px 0px 10px 0px;\r\n}\r\n\r\n[selector='left-hint-done'] div {\r\n display: flex;\r\n}\r\n\r\n[selector='left-hint-done'] img {\r\n height: 20px;\r\n margin-right: 15px;\r\n}\r\n\r\n[selector='left-hint-done'] p {\r\n font-size: 16px; \r\n line-height: 21.79px; \r\n font-weight: 600; \r\n color: #4EA075;\r\n}\r\n\r\n[selector='left-hint-fill'] {\r\n height: 50px;\r\n width: 400px;\r\n padding: 13px 12px 13px 12px;\r\n}\r\n\r\n[selector='left-hint-fill'] div {\r\n display: flex;\r\n}\r\n\r\n[selector='left-hint-fill'] img {\r\n height: 50px;\r\n margin-right: 15px;\r\n}\r\n\r\n[selector='arrow-button'] {\r\n margin-top: 1em;\r\n text-align: center;\r\n}\r\n\r\n[selector='arrow-button'] button {\r\n background-color: #FFFFFF;\r\n border-radius: 68.75px;\r\n width: 50px;\r\n height: 50px;\r\n\r\n background-image: url(\/public-files\/PLG_assets\/Frame%201171275558.png);\r\n background-repeat: no-repeat;\r\n background-position: center;\r\n}\r\n\r\n[selector='check'] {\r\n text-align: center;\r\n}\r\n\r\n[selector='message'] {\r\n text-align: center;\r\n}","created_at":"2024-12-02 16:15:27","updated_at":"2024-12-19 21:42:27","status":"ACTIVE","key":null,"watchers":"[]","translations":null,"is_template":0,"asset_type":"GUIDED_HELPER_PROCESS"},"extraAttributes":{"translatedLanguages":[]},"references":{"uncategorized-category":true}},"9da135ae-f28c-4df0-b479-3cbb5ede4dc1":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","type":"Script","type_human":"Script","type_plural":"Scripts","type_human_plural":"Scripts","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\Script","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[{"type":"user","uuid":"9dc3d1ad-97c9-43b2-ac58-c95c1ec18c80","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\UserExporter","modelClass":"ProcessMaker\\Models\\User","fallbackMatches":{"email":"admin@processmaker.com","username":"admin"},"name":"","discard":false},{"type":"executor","uuid":"9acb37b3-a8ed-49dc-b4de-f686ad4e286f","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExecutorExporter","modelClass":"ProcessMaker\\Models\\ScriptExecutor","fallbackMatches":{"title":"PHP Executor"},"name":"PHP Executor","discard":false}],"name":"SG - Helper Create Collections","description":"SG - Helper Create Collections","process_manager":"","process_manager_id":null,"attributes":{"id":25,"uuid":"9da135ae-f28c-4df0-b479-3cbb5ede4dc1","key":null,"title":"SG - Helper Create Collections","description":"SG - Helper Create Collections","language":"php","code":"users()->getUserById(1)['email'] \n * API Documentation https:\/\/github.com\/ProcessMaker\/docker-executor-php\/tree\/master\/docs\/sdk \n *\/\n\n\/*Init Guzzle (use endpoint) and set options *\/\n$guzzleClient = new \\GuzzleHttp\\Client(['base_uri'=> $_SERVER['HOST_URL'],'verify' => false]);\n$guzzleOptions['headers']['Accept'] = 'application\/json';\n$guzzleOptions['headers']['Authorization'] = 'Bearer ' . getenv('API_TOKEN');\n\n\/*Get Guided Template Collection Id*\/\n\n$guzzleApi = '\/api\/1.0\/collections\/guided-template';\n\ntry {\n $guidedTemplateId = $guzzleClient->request('GET', $guzzleApi, $guzzleOptions);\n $collectionId = json_decode($guidedTemplateId->getBody()->getContents());\n} catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n}\n\n\/\/ Get the helper process request ID stored in the process properties\n\n$process_launchpad_id = $data['process_launchpad_id'];\n$guzzleApi = '\/api\/1.0\/processes\/' . $process_launchpad_id;\n\n$res = $guzzleClient->request(\"GET\", $guzzleApi, $guzzleOptions);\n$process = json_decode($res->getBody(), true);\n\n\/* Add options for Guzzle request *\/\n$guzzleApi = '\/api\/1.0\/collections\/' . $collectionId . '\/records';\n\n\/* Check if helperProcessRequestId exists to update or create a new record *\/\nif(isset($process['properties']['helperProcessRequestId'])) {\n $helperProcessRequestId = $process['properties']['helperProcessRequestId'];\n\n $guzzleApi .= '?pmql=data.helperProcessRequestId%20=%20%22' . $helperProcessRequestId . '%22';\n \n try {\n $res = $guzzleClient->request('GET', $guzzleApi, $guzzleOptions);\n $existingRecordRes = json_decode($res->getBody(), true)[\"data\"];\n $existingRecordID = $existingRecordRes[0][\"id\"];\n $recordInfo['helperProcessRequestId'] = $helperProcessRequestId;\n\n \/* Edit options for Guzzle request *\/\n $guzzleApi = '\/api\/1.0\/collections\/' . $collectionId . '\/records\/' . $existingRecordID; \n $guzzleMethod = \"PUT\";\n } catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n} else {\n $recordInfo['helperProcessRequestId'] = $data[\"_request\"][\"id\"];\n $guzzleMethod = \"POST\";\n}\n\n$recordInfo[\"processName\"] = \"Smart Surveys\";\n$recordInfo[\"surveysCollectionId\"] = createCollection(\"Surveys\");\n$recordInfo[\"answersCollectionId\"] = createCollection(\"Surveys answers\");\n$recordInfo[\"whiteListCollectionId\"] = createCollection(\"Surveys invitees\");\n\n$guzzleOptions['json'] = $recordInfo;\n\n\/* Update or Save data on Collection *\/\ntry {\n $res = $guzzleClient->request($guzzleMethod, $guzzleApi, $guzzleOptions);\n} catch (\\Throwable $th) {\n return [\n 'errorCode' => $th->getCode(),\n 'errorMessage' => $th->getMessage()\n ];\n}\n\nif ($res->getStatusCode() == 201 || $res->getStatusCode() == 204) { \n return [\n \"setupComplete\" => \"yes\",\n \"helperProcessRequestId\" => $recordInfo['helperProcessRequestId']\n ];\n}\n\nfunction createCollection($title) {\n global $guzzleClient,$guzzleOptions;\n\n $date = new DateTime();\n $name = $title . \" \". $date->format('YmdHis');\n\n \/\/ screen fields here\n $screenData = [\n \"title\" => $name . \" edit\",\n \"type\" => \"FORM\",\n \"description\" => $name . \" edit\",\n \"projects\" => [],\n \"screen_category_id\" => \"1\",\n ];\n\n \/\/ screen view fields here\n $screenViewData = [\n \"title\" => $name . \" view\",\n \"type\" => \"DISPLAY\",\n \"description\" => $name . \" view\",\n \"projects\" => [],\n \"screen_category_id\" => \"1\",\n ];\n\n \/\/creates a new screen adn view Screen\n $editScreen = createScreenGlCode($screenData);\n $viewScreen = createScreenGlCode($screenViewData);\n\n \/\/create collection\n $creationGlCodeCollection = createCollectionGlColde($name, $editScreen, $viewScreen);\n\n $guzzleApi = '\/api\/1.0\/collections\/?filter=' . $name;\n try {\n $res = $guzzleClient->request('GET', $guzzleApi, $guzzleOptions);\n return $dataResult = json_decode($res->getBody(), true)[\"data\"][0][\"id\"];\n } catch (\\Throwable $th) {\n $response = [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n}\n\nfunction createScreenGlCode($screenData){\n global $guzzleClient,$guzzleOptions;\n\n $name =$screenData[\"title\"];\n $guzzleApi = '\/api\/1.0\/screens\/?filter='.$name;\n $res = $guzzleClient->request('GET', $guzzleApi, $guzzleOptions);\n $result = json_decode($res->getBody(), true)[\"data\"];\n\n if(count($result)>0){\n return $result[0]['id'];\n }else{\n try {\n $guzzleApi = '\/api\/1.0\/screens\/';\n $guzzleOptions['json'] = $screenData;\n $response = $guzzleClient->request('POST', $guzzleApi, $guzzleOptions);\n return $result = json_decode($response->getBody(), true)['id'];\n }catch (BadResponseException $e) {\n return [\n 'error' => [\n 'code' => $e->getCode(),\n 'message' => json_decode($e->getResponse()->getBody()->getContents(), true)\n ]\n ];\n }\n } \n}\n\nfunction createCollectionGlColde($name,$editScreen, $viewScreen){\n global $guzzleClient,$guzzleOptions;\n\n $guzzleApi = '\/api\/1.0\/collections';\n $params =[\n \"name\" => $name,\n \"description\" => $name,\n \"custom_title\" => \"My New collection\",\n \"create_screen_id\" => $editScreen,\n \"read_screen_id\" => $viewScreen,\n \"update_screen_id\" => $editScreen,\n \"signal_create\" => true,\n \"signal_update\" => true,\n \"signal_delete\" => true,\n ];\n\n $guzzleOptions['json'] = $params;\n try {\n $res = $guzzleClient->request('POST', $guzzleApi, $guzzleOptions);\n return $dataResult = json_decode($res->getBody(), true)[\"data\"];\n } catch (\\Throwable $th) {\n $response = [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n}","retry_wait_time":5,"retry_attempts":0,"timeout":60,"run_as_user_id":1,"created_at":"2024-12-02 16:32:39","updated_at":"2024-12-06 00:40:04","status":"ACTIVE","script_category_id":1,"script_executor_id":1,"is_template":0,"asset_type":"GUIDED_HELPER_PROCESS"},"extraAttributes":{"translatedLanguages":[]},"references":{"uncategorized-category":true}},"9acb37b3-a8ed-49dc-b4de-f686ad4e286f":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScriptExecutorExporter","type":"ScriptExecutor","type_human":"Script Executor","type_plural":"ScriptExecutors","type_human_plural":"Script Executors","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\ScriptExecutor","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"PHP Executor","description":"Default PHP Executor asdfsfdadsf","process_manager":"","process_manager_id":null,"attributes":{"id":1,"uuid":"9acb37b3-a8ed-49dc-b4de-f686ad4e286f","title":"PHP Executor","description":"Default PHP Executor asdfsfdadsf","language":"php","config":"RUN composer require aws\/aws-sdk-php:3.226.0","is_system":0,"created_at":"2023-12-07 19:07:15","updated_at":"2023-12-07 19:07:15"},"extraAttributes":{"translatedLanguages":[]},"references":[]},"9db1383f-fd14-47c6-a5b1-554241353f7c":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","type":"Script","type_human":"Script","type_plural":"Scripts","type_human_plural":"Scripts","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\Script","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[{"type":"user","uuid":"9dc3d1ad-97c9-43b2-ac58-c95c1ec18c80","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\UserExporter","modelClass":"ProcessMaker\\Models\\User","fallbackMatches":{"email":"admin@processmaker.com","username":"admin"},"name":"","discard":false},{"type":"executor","uuid":"9acb37b3-a8ed-49dc-b4de-f686ad4e286f","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExecutorExporter","modelClass":"ProcessMaker\\Models\\ScriptExecutor","fallbackMatches":{"title":"PHP Executor"},"name":"PHP Executor","discard":false}],"name":"SG - Register Answers","description":"SG - Register Answers","process_manager":"","process_manager_id":null,"attributes":{"id":26,"uuid":"9db1383f-fd14-47c6-a5b1-554241353f7c","key":null,"title":"SG - Register Answers","description":"SG - Register Answers","language":"php","code":"users()->getUserById(1)['email'] \n * API Documentation https:\/\/github.com\/ProcessMaker\/docker-executor-php\/tree\/master\/docs\/sdk \n *\/\n$uuid = $data[\"uuid\"];\n$email = $data[\"email\"];\n$answersCollectionId = $data['answersCollectionId'];\n$whiteListCollectionId = $data['whiteListCollectionId'];\n\n\/*\/\n$uuid = \"810ee323-873b-089d-3fef-789c81bbf7c4\";\n$email = \"edwin.choque@processmaker.com\";\n\/*\/\n$pattern = \"\/\\question\\d+\/\";\n\nforeach($data as $key => $row) {\n if(preg_match($pattern, $key)) {\n $questions[$key] = $data[$key];\n }\n}\n\n\/*Init Guzzle (use endpoint) and set options *\/\n$guzzleClient = new \\GuzzleHttp\\Client(['base_uri'=> $_SERVER['APP_URL'],'verify' => false]);\n$guzzleOptions['headers']['Accept'] = 'application\/json';\n$guzzleOptions['headers']['Authorization'] = 'Bearer ' . getenv('API_TOKEN');\n\n\/\/$collectionId = $config['answersCollectionId'] ?? 10;\n\n$record = [\n \"uuid\" => $uuid\n];\n\n$record = array_merge($record, $questions);\n\n$result = postCollection($answersCollectionId, $record);\n\n$output[\"collectionRecordId\"] = $result[\"id\"];\n$output[\"collectionId\"] = $answersCollectionId;\n\n\/*\/\nUpdate survey participated.\n\/*\/\n\/\/$collectionId = 11; \/\/ Survey invitees\n\/\/$collectionId = $config['whiteListCollectionId'] ?? 11;\n\n$guzzleApi = '\/api\/1.0\/collections\/' . $whiteListCollectionId . '\/records?pmql=data.uuid=\"' . $uuid . '\" and data.email=\"' . $email . '\"';\n\ntry {\n $res = $guzzleClient->request('GET', $guzzleApi, $guzzleOptions);\n $record = json_decode($res->getBody(), true)[\"data\"][0][\"data\"];\n} catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n}\n\n$collectionRecordId = $record[\"id\"];\n$record[\"hasParticipated\"] = true;\n\n$result = putCollection($whiteListCollectionId, $record);\n\nreturn $output;\n\nfunction putCollection($collectionId, $params = \"\") {\n global $collectionRecordId, $guzzleClient, $guzzleOptions;\n\n $guzzleHttpMethod = \"PUT\";\n $guzzleApi = \"\/api\/1.0\/collections\/\" . $collectionId . \"\/records\/\" . $collectionRecordId;\n $guzzleOptions['json'] = $params;\n\n try {\n $guzzleResponse = $guzzleClient->request($guzzleHttpMethod, $guzzleApi, $guzzleOptions);\n $response = json_decode($guzzleResponse->getBody(), true);\n } catch (\\Throwable $th) {\n $response = [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n\n return $response;\n}\n\nfunction postCollection($collectionId, $params = \"\") {\n\n if(empty($collectionId)) { return null; }\n\n global $guzzleClient, $guzzleOptions;\n\n $guzzleHttpMethod = \"POST\";\n $guzzleApi = \"\/api\/1.0\/collections\/\" . $collectionId . \"\/records\";\n $guzzleOptions['json'] = $params;\n\n try {\n $guzzleResponse = $guzzleClient->request($guzzleHttpMethod, $guzzleApi, $guzzleOptions);\n $response = json_decode($guzzleResponse->getBody(), true);\n } catch (\\Throwable $th) {\n $response = [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n\n return $response;\n}","retry_wait_time":5,"retry_attempts":0,"timeout":60,"run_as_user_id":1,"created_at":"2024-12-10 15:33:04","updated_at":"2024-12-10 15:33:19","status":"ACTIVE","script_category_id":1,"script_executor_id":1,"is_template":0,"asset_type":"GUIDED_HELPER_PROCESS"},"extraAttributes":{"translatedLanguages":[]},"references":{"uncategorized-category":true}},"9db12ea1-eb06-4752-9581-5ffd6849e79a":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScriptExporter","type":"Script","type_human":"Script","type_plural":"Scripts","type_human_plural":"Scripts","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\Script","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[{"type":"data-source-scripts","uuid":"9db13f39-2b51-4327-8005-9c6350a0b378","meta":null,"exporterClass":"ProcessMaker\\Packages\\Connectors\\DataSources\\ImportExport\\ScriptExporter","modelClass":"ProcessMaker\\Packages\\Connectors\\DataSources\\Models\\Script","fallbackMatches":[],"name":"SG - Close Surveys","discard":false},{"type":"user","uuid":"9dc3d1ad-97c9-43b2-ac58-c95c1ec18c80","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\UserExporter","modelClass":"ProcessMaker\\Models\\User","fallbackMatches":{"email":"admin@processmaker.com","username":"admin"},"name":"","discard":false},{"type":"executor","uuid":"9db13e81-448a-4681-89f4-fa317ffc52c2","meta":null,"exporterClass":"ProcessMaker\\ImportExport\\Exporters\\ScriptExecutorExporter","modelClass":"ProcessMaker\\Models\\ScriptExecutor","fallbackMatches":{"title":"Smart Surveys PHP"},"name":"Smart Surveys PHP","discard":false}],"name":"SG - Close Surveys","description":"SG - Close Surveys","process_manager":"","process_manager_id":null,"attributes":{"id":27,"uuid":"9db12ea1-eb06-4752-9581-5ffd6849e79a","key":null,"title":"SG - Close Surveys","description":"SG - Close Surveys","language":"php","code":"users()->getUserById(1)['email'] \n * API Documentation https:\/\/github.com\/ProcessMaker\/docker-executor-php\/tree\/master\/docs\/sdk \n *\/\n\/* Init Guzzle (use endpoint) and set options *\/\n\/* Main variables setup*\/\n\/* Variables to use API Calls*\/\n$guzzleClient = new \\GuzzleHttp\\Client([\n \"base_uri\" => $_SERVER[\"APP_URL\"],\n \"verify\" => false,\n]);\n$guzzleOptions[\"headers\"][\"Accept\"] = \"application\/json\";\n$guzzleOptions[\"headers\"][\"Authorization\"] = \"Bearer \" . getenv(\"API_TOKEN\");\n\n\/* Process ID definition *\/\n\/\/$processId = 184;\n$processId = $data[\"_request\"][\"process_id\"];\n\n\/* Get survey definitions and executions, process screen field is needed. *\/\n\n$guzzleApi = '\/api\/1.0\/requests?include=data&pmql=process_id=' . $processId . ' and ((data.process=\"Generate\" and status=\"COMPLETED\") or (data.process=\"Execute\" and status=\"ACTIVE\"))';\n\ntry {\n $res = $guzzleClient->request(\"GET\", $guzzleApi, $guzzleOptions);\n $dataResult = json_decode($res->getBody(), true)[\"data\"];\n} catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n}\n\n\/* Get expiration date from Survey definitions *\/\n\nforeach($dataResult as $item) {\n if($item[\"data\"][\"process\"] == \"Generate\") {\n $surveys[$item[\"data\"][\"uuid\"]] = $item[\"data\"][\"expirationDate\"];\n }\n}\n\n\/* Loop Survey executions with date expired *\/\n\nforeach($dataResult as $activeSurvey) {\n if($activeSurvey[\"data\"][\"process\"] == \"Execute\") {\n $expirationDate = $surveys[$activeSurvey[\"data\"][\"uuid\"]];\n $now = date(\"Y-m-d\");\n\n if($now > $expirationDate) {\n $apiTaskRequest = \"\/api\/1.0\/tasks?pmql=process_request_id=\" . $activeSurvey[\"id\"] . ' and status=\"ACTIVE\"';\n\n \/* We get the active tasks in each of the requests*\/\n\n try {\n $res2 = $guzzleClient->request(\"GET\", $apiTaskRequest, $guzzleOptions);\n $tasks = json_decode($res2->getBody(), true)[\"data\"];\n } catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n\n \/* Start update through API call*\/ \n\n foreach($tasks as $task) {\n $apiTaskUpdate = \"\/api\/1.0\/tasks\/\" . $task[\"id\"];\n $body[\"status\"] = \"COMPLETED\";\n $body[\"data\"][\"expired\"] = true;\n $guzzleOptions[\"json\"] = $body;\n\n try {\n $res3 = $guzzleClient->request(\"PUT\", $apiTaskUpdate, $guzzleOptions);\n \/\/$dataResult3 = json_decode($res3->getBody(), true)[\"data\"];\n } catch (\\Throwable $th) {\n return [\n 'error' => [\n 'code' => $th->getCode(),\n 'message' => $th->getMessage()\n ]\n ];\n }\n }\n }\n }\n}","retry_wait_time":5,"retry_attempts":0,"timeout":60,"run_as_user_id":1,"created_at":"2024-12-10 15:06:11","updated_at":"2024-12-19 21:42:28","status":"ACTIVE","script_category_id":1,"script_executor_id":10,"is_template":0,"asset_type":"GUIDED_HELPER_PROCESS"},"extraAttributes":{"translatedLanguages":[]},"references":{"uncategorized-category":true}},"9db13f39-2b51-4327-8005-9c6350a0b378":{"exporter":"ProcessMaker\\Packages\\Connectors\\DataSources\\ImportExport\\ScriptExporter","type":"DataConnectorScript","type_human":"Direct API Access For Script","type_plural":"DataConnectorScripts","type_human_plural":"Direct API Access For Scripts","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Packages\\Connectors\\DataSources\\Models\\Script","force_password_protect":false,"hidden":true,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"SG - Close Surveys","description":null,"process_manager":"","process_manager_id":null,"attributes":{"id":7,"uuid":"9db13f39-2b51-4327-8005-9c6350a0b378","script_id":27,"key":"242d6c8e-c691-48b0-8eeb-351992a1f7f6","enabled":0,"synchronously":1,"methods":"[\"POST\"]","data_types":"[\"FORM\"]","authentication":null,"authentication_config":"{\"password\": null, \"username\": null}","whitelist":"[]","created_at":"2024-12-10 15:52:34","updated_at":"2024-12-19 21:42:28"},"extraAttributes":{"translatedLanguages":[]},"references":[]},"9db13e81-448a-4681-89f4-fa317ffc52c2":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ScriptExecutorExporter","type":"ScriptExecutor","type_human":"Script Executor","type_plural":"ScriptExecutors","type_human_plural":"Script Executors","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\ScriptExecutor","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"Smart Surveys PHP","description":"Smart Surveys PHP","process_manager":"","process_manager_id":null,"attributes":{"id":10,"uuid":"9db13e81-448a-4681-89f4-fa317ffc52c2","title":"Smart Surveys PHP","description":"Smart Surveys PHP","language":"php","config":null,"is_system":0,"created_at":"2024-12-10 15:50:34","updated_at":"2024-12-10 15:50:34"},"extraAttributes":{"translatedLanguages":[]},"references":[]},"signal-catch_survey_response":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\SignalExporter","type":"Signal","type_human":"Signal","type_plural":"Signals","type_human_plural":"Signals","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\ImportExport\\Psudomodels\\Signal","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[{"type":"data-source-webhook","uuid":"9db138dd-a7ae-4201-b580-a2c187567f24","meta":null,"exporterClass":"ProcessMaker\\Packages\\Connectors\\DataSources\\ImportExport\\WebhookExporter","modelClass":"ProcessMaker\\Packages\\Connectors\\DataSources\\Models\\Webhook","fallbackMatches":{"name":null},"name":"Webhook for signal: catch_survey_response","discard":false}],"name":"catch_survey_response","description":"","process_manager":"","process_manager_id":null,"attributes":{"id":"catch_survey_response","name":"catch_survey_response","detail":"","global":true},"extraAttributes":{"translatedLanguages":[]},"references":[]},"9db138dd-a7ae-4201-b580-a2c187567f24":{"exporter":"ProcessMaker\\Packages\\Connectors\\DataSources\\ImportExport\\WebhookExporter","type":"Webhook","type_human":"Webhook","type_plural":"Webhooks","type_human_plural":"Webhooks","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Packages\\Connectors\\DataSources\\Models\\Webhook","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"Webhook for signal: catch_survey_response","description":null,"process_manager":"","process_manager_id":null,"attributes":{"id":3,"uuid":"9db138dd-a7ae-4201-b580-a2c187567f24","name":null,"description":null,"method":"POST","key":"f5e89b4ea6ddb75f260730cb30492bfa","type":"signal","authentication":"NONE","config":"{\"event\": \"catch_survey_response\", \"password\": null, \"restrict\": [], \"security\": [], \"username\": null, \"payload_type\": \"FORM\"}","headers":"[]","payload":null,"target_variable":null,"whitelist":null,"image_name":null,"created_at":"2024-12-10 15:34:48","updated_at":"2024-12-18 20:01:53"},"extraAttributes":{"translatedLanguages":[]},"references":[]},"9da1a16b-503b-4618-b23c-d6c61ec707ef":{"exporter":"ProcessMaker\\ImportExport\\Exporters\\ProcessLaunchpadExporter","type":"LaunchpadSetting","type_human":"Launchpad Setting","type_plural":"LaunchpadSettings","type_human_plural":"Launchpad Settings","last_modified_by":"","last_modified_by_id":null,"model":"ProcessMaker\\Models\\ProcessLaunchpad","force_password_protect":false,"hidden":false,"mode":"update","saveAssetsMode":"saveAllAssets","explicit_discard":false,"dependents":[],"name":"Setting","description":null,"process_manager":"","process_manager_id":null,"attributes":{"id":3,"uuid":"9da1a16b-503b-4618-b23c-d6c61ec707ef","process_id":13,"user_id":5,"properties":"{\"icon\": \"Default Icon\", \"tabs\": [], \"screen_id\": 0, \"icon_label\": \"Default Icon\", \"screen_uuid\": \"\", \"screen_title\": \"Default Launchpad\", \"saved_chart_id\": 0, \"saved_chart_title\": \"Default Launchpad Chart\"}","created_at":"2024-12-02 21:33:54","updated_at":"2024-12-19 21:42:28"},"extraAttributes":{"translatedLanguages":[]},"references":[]}}} \ No newline at end of file diff --git a/accounting-and-finance/smart_surveys/wizard-template-details.xml b/accounting-and-finance/smart_surveys/wizard-template-details.xml index d04bc3c..39a839b 100644 --- a/accounting-and-finance/smart_surveys/wizard-template-details.xml +++ b/accounting-and-finance/smart_surveys/wizard-template-details.xml @@ -1,10 +1,10 @@