Changes for page Processing a File per Line
Last modified by Erik Bakker on 2024/08/26 12:29
From version 35.1
edited by Carlijn Kokkeler
on 2024/08/21 16:12
on 2024/08/21 16:12
Change comment:
There is no comment for this version
To version 31.1
edited by Erik Bakker
on 2022/08/22 14:17
on 2022/08/22 14:17
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. CarlijnKokkeler1 +XWiki.ebakker - Content
-
... ... @@ -46,9 +46,9 @@ 46 46 ==== 3.1.2 Flat File Item Reader ==== 47 47 48 48 For the Flat File item reader, there are some more choices and configurations to be made. There are three options you can choose from: 49 - *Pass through line mapper50 - *Default line mapper51 - *Pattern matching composite line mapper49 +- Pass through line mapper 50 +- Default line mapper 51 +- Pattern matching composite line mapper 52 52 53 53 Each of these options has some advantages and disadvantages. Adhering to the best practices of eMagiz (i.e. no transformation in the entry) the best option would be to use the pass-through line mapper. As the name suggests this option does nothing except give a string back to the flow on a per line basis. However, choosing this option means that the actual transformation from that string to XML needs to happen later in the process (most likely in the onramp) with the help of a flat-file to XML transformer (more on that component in a later course). 54 54 ... ... @@ -66,9 +66,9 @@ 66 66 67 67 Now that we have selected and configured the item reader type it becomes time to fill in the last part of the configuration, the poller. For polling eMagiz offers three options: 68 68 69 - *Fixed Delay Trigger70 - *Fixed Rate Trigger71 - *Cron Trigger69 +- Fixed Delay Trigger 70 +- Fixed Rate Trigger 71 +- Cron Trigger 72 72 73 73 Of these options, the cron trigger is used most frequently in eMagiz. The reason being is that you can define this option via a property that you can alter without having to alter the flow version in Create. 74 74 ... ... @@ -76,20 +76,26 @@ 76 76 77 77 After finishing all these configuration steps we can press Save to save our work and ensure that we can process the input file on a per-line basis. 78 78 79 -== 4. Keytakeaways==79 +== 4. Assignment == 80 80 81 +Configure an entry in which you define the component and configuration needed to process a file on a per-line basis. 82 +This assignment can be completed with the help of the (Academy) project that you have created/used in the previous assignment. 83 + 84 +== 5. Key takeaways == 85 + 81 81 * Easy way of reading a file line by line and sending it to eMagiz (Low on memory) 82 82 * Ability to process each line based on distinctive logic that is relevant on line level 83 83 * Can be used for flat file as well as XML input files 84 84 * Try to avoid complex transformations within the entry 85 85 86 -== 5. Suggested Additional Readings ==91 +== 6. Suggested Additional Readings == 87 87 88 -* [[Use Cases (Menu)>>doc:Main.eMagiz Academy.Use Cases.WebHome||target="blank"]] 89 -** [[File based Connectivity (Navigation)>>doc:Main.eMagiz Academy.Use Cases.File based Connectivity.WebHome||target="blank"]] 90 -* [[Intermediate (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.WebHome||target="blank"]] 91 -** [[File based Connectivity (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.File based connectivity.WebHome||target="blank"]] 92 -* [[Advanced (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Advanced Level.WebHome||target="blank"]] 93 -** [[File based Connectivity (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Advanced Level.File based connectivity.WebHome||target="blank"]] 93 +There are no suggested additional readings on this topic 94 94 95 +== 7. Silent demonstration video == 96 + 97 +This video demonstrates how you could have handled the assignment and gives you some context on what you have just learned. 98 + 99 +{{video attachment="novice-file-based-connectivity-processing-a-file-per-line.mp4" reference="Main.Videos.Microlearning.WebHome"/}} 100 + 95 95 )))((({{toc/}}))){{/container}}{{/container}}