Last modified by Erik Bakker on 2024/08/26 12:29

From version 34.1
edited by Eva Torken
on 2023/06/16 13:08
Change comment: There is no comment for this version
To version 31.1
edited by Erik Bakker
on 2022/08/22 14:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.etorken
1 +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 mapper
50 -* Default line mapper
51 -* Pattern matching composite line mapper
49 +- 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 Trigger
70 -* Fixed Rate Trigger
71 -* Cron Trigger
69 +- 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,15 +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. Key takeaways ==
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 88  There are no suggested additional readings on this topic
89 89  
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 +
90 90  )))((({{toc/}}))){{/container}}{{/container}}