Wiki source code of Incorrect Groovy Configuration
Last modified by Erik Bakker on 2024/09/03 10:17
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{container}}{{container layoutStyle="columns"}}((( | ||
2 | In this document, we will use the actual root cause analysis information to make a generic view that can be used if you run into the same or similar problem. Finally, the document will describe the situation, the problem, the analysis, and the result. | ||
3 | |||
4 | Should you have any questions, please get in touch with [[academy@emagiz.com>>mailto:academy@emagiz.com]]. | ||
5 | |||
6 | == 1. Situation == | ||
7 | |||
8 | A report showed that a previously working [[Groovy>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Data Handling.expert-data-handling-groovy-script||target="blank"]] script was not functioning anymore. The goal of the [[Groovy>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Data Handling.expert-data-handling-groovy-script||target="blank"]] script was to remove messages from an SFTP to ensure that the amount of data on the SFTP would not grow out of control. | ||
9 | |||
10 | == 2. Problem == | ||
11 | |||
12 | A seemingly broken [[Groovy>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Data Handling.expert-data-handling-groovy-script||target="blank"]] script that was not executing as it should. | ||
13 | |||
14 | == 3. Analysis == | ||
15 | |||
16 | === 3.1 Reproduction === | ||
17 | |||
18 | The first thing we did was compare the [[Groovy>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Data Handling.expert-data-handling-groovy-script||target="blank"]] script to the [[Groovy>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Data Handling.expert-data-handling-groovy-script||target="blank"]] script that is available in the eMagiz Store and was before accessible by members of the eMagiz Competence Center. During this comparison, we noted several discrepancies between both of them. Some of them could be explained because the [[Groovy>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Data Handling.expert-data-handling-groovy-script||target="blank"]] script in the store assumes the archive location is a local folder, and in this case, the archive folder is located on the SFTP. Some of them, however, differed without such a clear explanation. | ||
19 | |||
20 | === 3.2 Analysis === | ||
21 | |||
22 | To adhere to the best practice, we rewrote the part (outside the SFTP connection) to mimic the [[Groovy>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Data Handling.expert-data-handling-groovy-script||target="blank"]] script in the store. With those changes, we reran the script and got a working solution that removes the folder in question, which is the intended behavior of the script. | ||
23 | |||
24 | == 4. Result == | ||
25 | |||
26 | Once the [[Groovy>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Data Handling.expert-data-handling-groovy-script||target="blank"]] script was changed to reflect best practices, it fulfilled its function again. | ||
27 | |||
28 | == 5. Suggested Additional Readings == | ||
29 | |||
30 | * [[Expert (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.WebHome||target="blank"]] | ||
31 | ** [[Data Handling (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Data Handling.WebHome||target="blank"]] | ||
32 | *** [[Groovy (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Data Handling.expert-data-handling-groovy-script||target="blank"]] | ||
33 | * [[RCA Knowledge Base (Menu)>>doc:Main.eMagiz Support.RCA Knowledge Base.WebHome||target="blank"]] | ||
34 | ** [[Configuration Issues (Navigation)>>>doc:Main.eMagiz Support.RCA Knowledge Base.rca-knowledgebase-configuration-issues.WebHome||target="blank"]] | ||
35 | *** [[Incorrect flow configuration (Explanation)>>doc:Main.eMagiz Support.RCA Knowledge Base.rca-knowledgebase-configuration-issues.rca-knowledgebase-incorrect-flow-configuration.WebHome||target="blank"]] | ||
36 | * [[Groovy (Search Result)>>url:https://docs.emagiz.com/bin/view/Main/Search?sort=score&sortOrder=desc&highlight=true&facet=true&r=1&f_space_facet=0%2FMain.&f_type=DOCUMENT&f_locale=en&f_locale=&f_locale=en&text=%22groovy%22||target="blank"]] | ||
37 | |||
38 | )))((({{toc/}}))){{/container}}{{/container}} |