{"class_fqid":"com-snaplogic-pipeline_9","snode_id":"67db9c6a3a01406ac95abddb","instance_id":"bc2cc71c-4cdd-4b72-bce4-7bf335f50295","instance_version":10,"link_map":{"link102":{"dst_id":"265557da-62ea-4620-951b-4846ebbd95aa","dst_view_id":"input0","src_id":"5842ede7-9a67-4be9-a7ee-c23f35dc6927","src_view_id":"output0","isGoto":false},"link104":{"dst_id":"5842ede7-9a67-4be9-a7ee-c23f35dc6927","dst_view_id":"input101","src_id":"59a4645f-7c39-4b1e-a57d-13aa3dc1c629","src_view_id":"output0","isGoto":false},"link105":{"dst_id":"59a4645f-7c39-4b1e-a57d-13aa3dc1c629","dst_view_id":"input0","src_id":"3981e480-466f-42e9-b136-dec1ac5b0249","src_view_id":"output0","isGoto":false},"link107":{"dst_id":"56b5e17a-462d-4fb7-831a-0121c3aa0697","dst_view_id":"input0","src_id":"f1a11716-6b2f-46aa-b91d-d3d7c27901a3","src_view_id":"output0","isGoto":false},"link108":{"dst_id":"f1a11716-6b2f-46aa-b91d-d3d7c27901a3","dst_view_id":"input101","src_id":"70eadbde-edb6-425d-be63-09c4ed48f353","src_view_id":"output0","isGoto":false},"link109":{"dst_id":"70eadbde-edb6-425d-be63-09c4ed48f353","dst_view_id":"input0","src_id":"c97d86fc-e4ad-4fba-b711-fd4e600722fe","src_view_id":"output0","isGoto":false},"link112":{"dst_id":"c97d86fc-e4ad-4fba-b711-fd4e600722fe","dst_view_id":"input101","src_id":"24602483-5656-4552-ae88-68621791610f","src_view_id":"output1","isGoto":false},"link113":{"dst_id":"24602483-5656-4552-ae88-68621791610f","dst_view_id":"input0","src_id":"ee3919c5-47bf-4b89-b8cc-0aa03677d581","src_view_id":"output0","isGoto":false},"link114":{"dst_id":"3981e480-466f-42e9-b136-dec1ac5b0249","dst_view_id":"input101","src_id":"24602483-5656-4552-ae88-68621791610f","src_view_id":"output0","isGoto":true}},"link_serial":115,"property_map":{"info":{"label":{"value":"ScanProject"},"author":{"value":"ssahoo@snaplogic.com"},"pipeline_doc_uri":{"value":null},"notes":{"value":null},"purpose":{"value":null}},"error":{"5842ede7-9a67-4be9-a7ee-c23f35dc6927_error0":{"view_type":{"value":"document"},"label":{"value":"Pipeline Metadata Read - error0"}},"f1a11716-6b2f-46aa-b91d-d3d7c27901a3_error0":{"view_type":{"value":"document"},"label":{"value":"Pipeline Metadata Read - error0"}},"error_behavior":{"value":"none"}},"settings":{"error_pipeline":{"value":null,"expression":false},"error_param_table":{"value":[]},"param_table":{"value":[{"capture":{"value":false},"key":{"value":"path"},"value":{"value":"/QA/qa_diagnostic_space/Scanproject"},"required":{"value":false},"data_type":{"value":"string"},"description":{"value":null}}]},"imports":{"value":[]}},"input":{},"output":{"265557da-62ea-4620-951b-4846ebbd95aa_output0":{"view_type":{"value":"document"},"label":{"value":"Account Scan - output0"}},"56b5e17a-462d-4fb7-831a-0121c3aa0697_output0":{"view_type":{"value":"document"},"label":{"value":"Pipeline Scan - output0"}}}},"render_map":{"scale_ratio":1,"pan_x_num":0,"pan_y_num":0,"default_snaplex":"650d27afbf87226317660d8a","detail_map":{"3981e480-466f-42e9-b136-dec1ac5b0249":{"grid_x_int":5,"grid_y_int":2,"rot_int":0,"recommendation_id":null,"source":"snap catagory","index":null,"rot_tail_int":0,"input":{},"output":{},"error":{}},"265557da-62ea-4620-951b-4846ebbd95aa":{"grid_x_int":8,"grid_y_int":2,"rot_int":0,"recommendation_id":null,"source":"","index":null,"rot_tail_int":0,"input":{},"output":{},"error":{}},"5842ede7-9a67-4be9-a7ee-c23f35dc6927":{"grid_x_int":7,"grid_y_int":2,"rot_int":0,"recommendation_id":null,"source":"","index":null,"rot_tail_int":0,"error":{"error0":{"rot_int":0,"dx_int":0,"dy_int":-1}},"input":{},"output":{}},"59a4645f-7c39-4b1e-a57d-13aa3dc1c629":{"grid_x_int":6,"grid_y_int":2,"rot_int":0,"recommendation_id":null,"source":"snap catagory","index":null,"rot_tail_int":0,"input":{},"output":{},"error":{}},"ee3919c5-47bf-4b89-b8cc-0aa03677d581":{"grid_x_int":3,"grid_y_int":3,"rot_int":0,"recommendation_id":null,"source":"snap catagory","index":null,"rot_tail_int":0,"input":{}},"c97d86fc-e4ad-4fba-b711-fd4e600722fe":{"grid_x_int":5,"grid_y_int":4,"rot_int":0,"recommendation_id":null,"source":"","index":null,"rot_tail_int":0},"70eadbde-edb6-425d-be63-09c4ed48f353":{"grid_x_int":6,"grid_y_int":4,"rot_int":0,"recommendation_id":null,"source":"","index":null,"rot_tail_int":0,"output":{},"input":{},"error":{}},"f1a11716-6b2f-46aa-b91d-d3d7c27901a3":{"grid_x_int":7,"grid_y_int":4,"rot_int":0,"recommendation_id":null,"source":"","index":null,"rot_tail_int":0,"error":{"error0":{"rot_int":0,"dx_int":0,"dy_int":-1}},"input":{},"output":{}},"56b5e17a-462d-4fb7-831a-0121c3aa0697":{"grid_x_int":8,"grid_y_int":4,"rot_int":0,"recommendation_id":null,"source":"","index":null,"rot_tail_int":0,"input":{},"output":{},"error":{}},"24602483-5656-4552-ae88-68621791610f":{"grid_x_int":4,"grid_y_int":3,"rot_int":0,"recommendation_id":null,"source":"snap catagory","index":null,"rot_tail_int":0,"output":{"output1":{"rot_int":0,"dx_int":0,"dy_int":1}},"input":{},"error":{}}},"notes":{"a14eb655-3849-44ba-8c90-1a8b3bcce0ea":{"creator":"Sushma Sapa","content":"Provide project Path as part of Json Generator","created":"2025-02-11T22:52:32.462Z","width":200,"height":150,"x":87.61402245478163,"y":88.71238589501972},"07bd6315-d4cb-4382-8c5b-638caa1d7ae0":{"creator":"Sushma Sapa","content":"Flow to Scan all the accounts in the given project and output the Rest account paths","created":"2025-02-11T22:53:12.464Z","width":200,"height":150,"x":240.94927563104073,"y":26.788237598801214},"ae70a67f-487e-4d69-9de2-1f30c5f419b8":{"creator":"Sushma Sapa","content":"Flow to Scan all the pipelines in the given project and output the Pipelines path which have Rest snaps","created":"2025-02-11T22:53:52.409Z","width":200,"height":150,"x":281.57843667006756,"y":360.5165806562843},"81fbe4e4-3b60-46dd-9adb-64b66c24d0fc":{"creator":"Sushma Sapa","content":"Flow to Scan all the pipelines in the given project and output the Pipeline paths which has Rest snaps","created":"2025-02-11T22:55:08.137Z","width":200,"height":150,"x":262.97082800310807,"y":248.5802497003009}}},"snap_map":{"3981e480-466f-42e9-b136-dec1ac5b0249":{"class_fqid":"com-snaplogic-snaps-snaplogic-list_1-440patches29922","class_id":"com-snaplogic-snaps-snaplogic-list","class_version":1,"instance_fqid":"3981e480-466f-42e9-b136-dec1ac5b0249_1","instance_id":"3981e480-466f-42e9-b136-dec1ac5b0249","instance_version":1,"property_map":{"info":{"label":{"value":"SnapLogic List"},"notes":{}},"output":{"output0":{"view_type":{"value":"document"},"label":{"value":"output0"}}},"error":{"error0":{"view_type":{"value":"document"},"label":{"value":"error0"}},"error_behavior":{"value":"fail"}},"settings":{"execution_mode":{"value":"Validate & Execute"},"AssetType":{"value":"ACCOUNT"},"AssetPath":{"value":"$path","expression":true}},"view_serial":101,"input":{"input101":{"label":{"value":"input0"},"view_type":{"value":"document"}}}},"class_build_tag":"440patches29922"},"265557da-62ea-4620-951b-4846ebbd95aa":{"class_fqid":"com-snaplogic-snaps-script-script_2-SNAPSHOT","class_id":"com-snaplogic-snaps-script-script","class_version":2,"instance_fqid":"265557da-62ea-4620-951b-4846ebbd95aa_1","instance_id":"265557da-62ea-4620-951b-4846ebbd95aa","instance_version":1,"property_map":{"info":{"label":{"value":"Account Scan"},"notes":{}},"input":{"input0":{"view_type":{"value":"document"},"label":{"value":"input0"}}},"output":{"output0":{"view_type":{"value":"document"},"label":{"value":"output0"}}},"error":{"error0":{"view_type":{"value":"document"},"label":{"value":"error0"}},"error_behavior":{"value":"fail"}},"settings":{"execution_mode":{"value":"Validate & Execute"},"executable_during_suggest":{"value":false},"language":{"value":"Javascript"},"script":{"value":null,"expression":false},"editable_content":{"value":"// Ensure compatibility with both JDK 7 and 8 JSR-223 Script Engines\ntry { load(\"nashorn:mozilla_compat.js\"); } catch (e) { }\n\n// Import the interface required by the Script snap.\nimportPackage(com.snaplogic.scripting.language);\n\n// Import the serializable Java type we'll use for the output data.\nimportClass(java.util.LinkedHashMap);\nimportClass(java.util.Map);\nimportClass(java.util.ArrayList);\n\n/**\n * Create an object that implements the methods defined by the \"ScriptHook\"\n * interface. We'll be passing this object to the constructor for the\n * ScriptHook interface.\n */\nvar impl = {\n /*\n * These variables (input, output, error, log) are defined by the\n * ExecuteScript snap when evaluating this script.\n */\n input: input,\n output: output,\n error: error,\n log: log,\n\n /**\n * The \"execute()\" method is called once when the pipeline is started\n * and allowed to process its inputs or just send data to its outputs.\n *\n * Exceptions are automatically caught and sent to the error view.\n */\n execute: function () {\n this.log.info(\"Executing Transform Script\");\n while (this.input.hasNext()) {\n try {\n // Read the next input document, store it a new LinkedHashMap, and write this as an output document.\n // We must use a serializable Java type liked LinkedHashMap for each output instead of a native\n // JavaScript object so that downstream Snaps like Copy can process it correctly.\n var inDoc = this.input.next();\n var outDoc = new LinkedHashMap();\n if (!inDoc.get(\"class_id\").contains(\"com-snaplogic-snaps-rest\")) {\n continue;\n } else {\n outDoc.put(\"pipelinePath\", inDoc.get(\"path\"));\n this.output.write(inDoc, outDoc)\n }\n } catch (err) {\n var errDoc = new LinkedHashMap();\n errDoc.put(\"error\", err);\n this.log.error(err);\n this.error.write(errDoc);\n }\n }\n this.log.info(\"Script executed\");\n },\n\n /**\n * The \"cleanup()\" method is called after the snap has exited the execute() method\n */\n cleanup: function () {\n this.log.info(\"Cleaning up\")\n }\n};\n\n\n/**\n * The Script Snap will look for a ScriptHook object in the \"hook\"\n * variable. The snap will then call the hook's \"execute\" method.\n */\nvar hook = new com.snaplogic.scripting.language.ScriptHook(impl);\n"}},"view_serial":100},"class_build_tag":"SNAPSHOT"},"5842ede7-9a67-4be9-a7ee-c23f35dc6927":{"class_fqid":"com-snaplogic-snaps-snaplogic-read_1-SNAPSHOT","class_id":"com-snaplogic-snaps-snaplogic-read","class_version":1,"instance_fqid":"5842ede7-9a67-4be9-a7ee-c23f35dc6927_1","instance_id":"5842ede7-9a67-4be9-a7ee-c23f35dc6927","instance_version":1,"property_map":{"info":{"label":{"value":"Pipeline Metadata Read"},"notes":{}},"output":{"output0":{"view_type":{"value":"document"},"label":{"value":"output0"}}},"error":{"error0":{"view_type":{"value":"document"},"label":{"value":"error0"}},"error_behavior":{"value":"continue"}},"settings":{"execution_mode":{"value":"Validate & Execute"},"normalized":{"value":false},"AssetType":{"value":"ACCOUNT"},"AssetPath":{"value":"$path","expression":true},"strictPath":{"value":true}},"view_serial":101,"input":{"input101":{"label":{"value":"input0"},"view_type":{"value":"document"}}}},"class_build_tag":"SNAPSHOT"},"59a4645f-7c39-4b1e-a57d-13aa3dc1c629":{"class_fqid":"com-snaplogic-snaps-flow-filter_2-440patches29922","class_id":"com-snaplogic-snaps-flow-filter","class_version":2,"instance_fqid":"59a4645f-7c39-4b1e-a57d-13aa3dc1c629_1","instance_id":"59a4645f-7c39-4b1e-a57d-13aa3dc1c629","instance_version":1,"property_map":{"info":{"label":{"value":"Filter"},"notes":{}},"input":{"input0":{"view_type":{"value":"document"},"label":{"value":"input0"}}},"output":{"output0":{"view_type":{"value":"document"},"label":{"value":"output0"}}},"error":{"error0":{"view_type":{"value":"document"},"label":{"value":"error0"}},"error_behavior":{"value":"fail"}},"settings":{"execution_mode":{"value":"Validate & Execute"},"filterExpression":{"expression":true,"value":"!$path.contains(\"*\")"},"nullSafeAccess":{"value":false}},"view_serial":100},"class_build_tag":"440patches29922"},"ee3919c5-47bf-4b89-b8cc-0aa03677d581":{"class_fqid":"com-snaplogic-snaps-transform-jsongenerator_2-440patches29949","class_id":"com-snaplogic-snaps-transform-jsongenerator","class_version":2,"instance_fqid":"ee3919c5-47bf-4b89-b8cc-0aa03677d581_5","instance_id":"ee3919c5-47bf-4b89-b8cc-0aa03677d581","instance_version":5,"property_map":{"info":{"label":{"value":"JSON Generator"},"notes":{}},"output":{"output0":{"view_type":{"value":"document"},"label":{"value":"output0"}}},"error":{"error0":{"view_type":{"value":"document"},"label":{"value":"error0"}},"error_behavior":{"value":"fail"}},"settings":{"execution_mode":{"value":"Validate & Execute"},"editable_content":{"value":"## Enter your JSON-encoded data in this space. Note that this text is\n## treated as an Apache Velocity template, so you can substitute values\n## from input documents or the pipeline parameters. See the following\n## URL for more information about Velocity:\n## https://velocity.apache.org/engine/devel/user-guide.html\n\n[\n {\n \"path\" : \"/QA/qa_diagnostic_space/Scanproject\"\n }\n]\n\n\n## Tips:\n## * The sample data above will generate a single empty document, uncomment\n## the line in the middle to include the sample fields. Adding more\n## objects to the root array will cause the snap to generate more\n## than one document.\n## * Pipeline parameters can be referenced by prefixing the parameter\n## name with an underscore, like so:\n## ${_pipelineParamName}\n## * If you add an input view to the snap, this template will be\n## evaluated for each input document.\n## * Fields in the input documents can be referenced by prefixing them\n## with a dollar-sign ($), like so:\n## $parent.child[0].value\n## * Any referenced document values and pipeline parameters will\n## automatically be JSON-encoded when they are inserted into the final\n## JSON document. You should not have to worry about escaping values\n## yourself.\n## * If you are having troubles getting a template to produce valid JSON,\n## you can add an error view to the snap to get a document that\n## contains the output of the template evaluation.\n"},"arrayElementsAsDocuments":{"value":true},"passThroughProp":{"value":false},"supportTypeExts":{"value":false}},"view_serial":100,"input":{}},"class_build_tag":"440patches29949"},"c97d86fc-e4ad-4fba-b711-fd4e600722fe":{"class_fqid":"com-snaplogic-snaps-snaplogic-list_1-440patches29922","class_id":"com-snaplogic-snaps-snaplogic-list","class_version":1,"instance_fqid":"c97d86fc-e4ad-4fba-b711-fd4e600722fe_3","instance_id":"c97d86fc-e4ad-4fba-b711-fd4e600722fe","instance_version":3,"property_map":{"info":{"label":{"value":"SnapLogic List"},"notes":{}},"output":{"output0":{"view_type":{"value":"document"},"label":{"value":"output0"}}},"error":{"error0":{"view_type":{"value":"document"},"label":{"value":"error0"}},"error_behavior":{"value":"fail"}},"settings":{"execution_mode":{"value":"Validate & Execute"},"AssetType":{"value":"PIPELINE"},"AssetPath":{"value":"$path","expression":true}},"view_serial":101,"input":{"input101":{"label":{"value":"input0"},"view_type":{"value":"document"}}}},"class_build_tag":"440patches29922"},"70eadbde-edb6-425d-be63-09c4ed48f353":{"class_fqid":"com-snaplogic-snaps-flow-filter_2-440patches29922","class_id":"com-snaplogic-snaps-flow-filter","class_version":2,"instance_fqid":"70eadbde-edb6-425d-be63-09c4ed48f353_1","instance_id":"70eadbde-edb6-425d-be63-09c4ed48f353","instance_version":1,"property_map":{"info":{"label":{"value":"Filter"},"notes":{}},"input":{"input0":{"view_type":{"value":"document"},"label":{"value":"input0"}}},"output":{"output0":{"view_type":{"value":"document"},"label":{"value":"output0"}}},"error":{"error0":{"view_type":{"value":"document"},"label":{"value":"error0"}},"error_behavior":{"value":"fail"}},"settings":{"execution_mode":{"value":"Validate & Execute"},"filterExpression":{"expression":true,"value":"!$path.contains(\"*\")"},"nullSafeAccess":{"value":false}},"view_serial":100},"class_build_tag":"440patches29922"},"f1a11716-6b2f-46aa-b91d-d3d7c27901a3":{"class_fqid":"com-snaplogic-snaps-snaplogic-read_1-SNAPSHOT","class_id":"com-snaplogic-snaps-snaplogic-read","class_version":1,"instance_fqid":"f1a11716-6b2f-46aa-b91d-d3d7c27901a3_1","instance_id":"f1a11716-6b2f-46aa-b91d-d3d7c27901a3","instance_version":1,"property_map":{"info":{"label":{"value":"Pipeline Metadata Read"},"notes":{}},"output":{"output0":{"view_type":{"value":"document"},"label":{"value":"output0"}}},"error":{"error0":{"view_type":{"value":"document"},"label":{"value":"error0"}},"error_behavior":{"value":"continue"}},"settings":{"execution_mode":{"value":"Validate & Execute"},"normalized":{"value":false},"AssetType":{"value":"PIPELINE"},"AssetPath":{"value":"$path","expression":true},"strictPath":{"value":true}},"view_serial":101,"input":{"input101":{"label":{"value":"input0"},"view_type":{"value":"document"}}}},"class_build_tag":"SNAPSHOT"},"56b5e17a-462d-4fb7-831a-0121c3aa0697":{"class_fqid":"com-snaplogic-snaps-script-script_2-SNAPSHOT","class_id":"com-snaplogic-snaps-script-script","class_version":2,"instance_fqid":"56b5e17a-462d-4fb7-831a-0121c3aa0697_1","instance_id":"56b5e17a-462d-4fb7-831a-0121c3aa0697","instance_version":1,"property_map":{"info":{"label":{"value":"Pipeline Scan"},"notes":{}},"input":{"input0":{"view_type":{"value":"document"},"label":{"value":"input0"}}},"output":{"output0":{"view_type":{"value":"document"},"label":{"value":"output0"}}},"error":{"error0":{"view_type":{"value":"document"},"label":{"value":"error0"}},"error_behavior":{"value":"fail"}},"settings":{"execution_mode":{"value":"Validate & Execute"},"executable_during_suggest":{"value":false},"language":{"value":"Javascript"},"script":{"value":null,"expression":false},"editable_content":{"value":"// Ensure compatibility with both JDK 7 and 8 JSR-223 Script Engines\ntry { load(\"nashorn:mozilla_compat.js\"); } catch (e) { }\n\n// Import the interface required by the Script snap.\nimportPackage(com.snaplogic.scripting.language);\n\n// Import the serializable Java type we'll use for the output data.\nimportClass(java.util.LinkedHashMap);\nimportClass(java.util.Map);\nimportClass(java.util.ArrayList);\n\n/**\n * Create an object that implements the methods defined by the \"ScriptHook\"\n * interface. We'll be passing this object to the constructor for the\n * ScriptHook interface.\n */\nvar impl = {\n /*\n * These variables (input, output, error, log) are defined by the\n * ExecuteScript snap when evaluating this script.\n */\n input: input,\n output: output,\n error: error,\n log: log,\n\n /**\n * The \"execute()\" method is called once when the pipeline is started\n * and allowed to process its inputs or just send data to its outputs.\n *\n * Exceptions are automatically caught and sent to the error view.\n */\n execute: function () {\n this.log.info(\"Executing Transform Script\");\n while (this.input.hasNext()) {\n try {\n // Read the next input document, store it a new LinkedHashMap, and write this as an output document.\n // We must use a serializable Java type liked LinkedHashMap for each output instead of a native\n // JavaScript object so that downstream Snaps like Copy can process it correctly.\n var inDoc = this.input.next();\n var snapMap = inDoc.get(\"snap_map\");\n var outDoc = new LinkedHashMap();\n var snapIDList = new ArrayList();\n var isContainRest = false;\n for (var key in snapMap) {\n var snap = snapMap.get(key);\n if (!snap.get(\"class_id\").contains(\"com-snaplogic-snaps-rest\")) {\n continue;\n } else {\n outDoc.put(\"pipelinePath\", inDoc.get(\"path\"));\n this.output.write(inDoc, outDoc)\n break;\n }\n }\n } catch (err) {\n var errDoc = new LinkedHashMap();\n errDoc.put(\"error\", err);\n this.log.error(err);\n this.error.write(errDoc);\n }\n }\n this.log.info(\"Script executed\");\n },\n\n /**\n * The \"cleanup()\" method is called after the snap has exited the execute() method\n */\n cleanup: function () {\n this.log.info(\"Cleaning up\")\n }\n};\n\n\n/**\n * The Script Snap will look for a ScriptHook object in the \"hook\"\n * variable. The snap will then call the hook's \"execute\" method.\n */\nvar hook = new com.snaplogic.scripting.language.ScriptHook(impl);\n"}},"view_serial":100},"class_build_tag":"SNAPSHOT"},"24602483-5656-4552-ae88-68621791610f":{"class_fqid":"com-snaplogic-snaps-flow-copy_1-440patches29949","class_id":"com-snaplogic-snaps-flow-copy","class_version":1,"instance_fqid":"24602483-5656-4552-ae88-68621791610f_1","instance_id":"24602483-5656-4552-ae88-68621791610f","instance_version":1,"property_map":{"info":{"label":{"value":"Copy"}},"input":{"input0":{"view_type":{"value":"document"},"label":{"value":"input0"}}},"output":{"output0":{"view_type":{"value":"document"},"label":{"value":"output0"}},"output1":{"view_type":{"value":"document"},"label":{"value":"output1"}}},"error":{"error0":{"view_type":{"value":"document"},"label":{"value":"error0"}},"error_behavior":{"value":"fail"}},"settings":{"execution_mode":{"value":"Validate & Execute"}},"view_serial":100},"class_build_tag":"440patches29949"}},"path_id":"/QA/qa_diagnostic_space/Scanproject","path_snode":"67db9a81ac44f9d34acc7386","target_runtime":"standard"}