Changes for page Pick up Files
Last modified by Danniar Firdausy on 2024/08/21 16:48
Summary
-
Page properties (4 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,0 @@ 1 -Pick up Files - Parent
-
... ... @@ -1,1 +1,0 @@ 1 -WebHome - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. eMagiz1 +XWiki.marijn - Content
-
... ... @@ -1,7 +1,16 @@ 1 -{{container}}{{container layoutStyle="columns"}}((( 1 +{{html wiki="true"}} 2 +<div class="ez-academy"> 3 + <div class="ez-academy_body"> 4 + 5 +<div class="doc"> 6 + 7 + 8 + 9 += Pick up Files = 10 + 2 2 In this microlearning, we will explain the basics of retrieving files from a local directory (i.e. a directory that is directly accessible within the network where the eMagiz process is running) 3 3 4 -Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]].13 +Should you have any questions, please contact academy@emagiz.com. 5 5 6 6 * Last update: February 25th, 2021 7 7 * Required reading time: 8 minutes ... ... @@ -23,6 +23,8 @@ 23 23 * Has eMagiz the appropriate rights to read from the directory where the messages are to be retrieved from 24 24 * What is the format (i.e. XML, JSON, EDI, TXT, CSV, etc.) of the files that eMagiz needs to retrieve 25 25 35 + 36 + 26 26 == 3. Pick up Files == 27 27 28 28 One of the easiest connectivity methods to implement within eMagiz is the retrieval of files from a local directory. ... ... @@ -37,7 +37,7 @@ 37 37 38 38 By default, eMagiz has a filter that will only accept each file once. This option is called prevent duplicates 39 39 40 - [[image:Main.Images.Microlearning.WebHome@crashcourse-messaging-pick-up-files--prevent-duplicates.png]]51 +<p align="center">[[image:crashcourse-messaging-pick-up-files--prevent-duplicates.png||]]</p> 41 41 42 42 As the eMagiz help text clearly states this option will ensure that eMagiz will keep a list in memory and files are only to be passed once. 43 43 This check is done before any other filtering is done. So be aware when mixing these settings. ... ... @@ -53,7 +53,7 @@ 53 53 54 54 To filter which messages need to be retrieved from a local directory we use a composite file list filter. 55 55 56 - [[image:Main.Images.Microlearning.WebHome@crashcourse-messaging-pick-up-files--composite-file-list-filter-component.png]]67 +<p align="center">[[image:crashcourse-messaging-pick-up-files--composite-file-list-filter-component.png||]]</p> 57 57 58 58 In this filter, we use the following four criteria to filter our messages: 59 59 ... ... @@ -64,12 +64,12 @@ 64 64 65 65 The result of this configuration should be: 66 66 67 - [[image:Main.Images.Microlearning.WebHome@crashcourse-messaging-pick-up-files--composite-file-list-filter.png]]78 +<p align="center">[[image:crashcourse-messaging-pick-up-files--composite-file-list-filter.png||]]</p> 68 68 69 69 The next step would be to link this support object to the file inbound channel adapter (the starting point of our flow). To do so open the component and navigate to the Advanced tab. 70 70 Here you need to select the correct filter to reference your support object. 71 71 72 - [[image:Main.Images.Microlearning.WebHome@crashcourse-messaging-pick-up-files--composite-file-list-filter-linked.png]]83 +<p align="center">[[image:crashcourse-messaging-pick-up-files--composite-file-list-filter-linked.png||]]</p> 73 73 74 74 === 3.2 Frequency === 75 75 ... ... @@ -82,7 +82,7 @@ 82 82 * Fixed-Rate 83 83 * Cron Trigger 84 84 85 - [[image:Main.Images.Microlearning.WebHome@crashcourse-messaging-pick-up-files--frequency-options.png]]96 +<p align="center">[[image:crashcourse-messaging-pick-up-files--frequency-options.png||]]</p> 86 86 87 87 Both the Fixed Delay and the Fixed Rate are static. This means that when you want to change the frequency with which you look you will have to make a new version of the flow. 88 88 ... ... @@ -110,18 +110,20 @@ 110 110 111 111 There is a component in eMagiz called the file to string transformer. You should place this directly after receiving the file from the external source 112 112 113 - [[image:Main.Images.Microlearning.WebHome@crashcourse-messaging-pick-up-files--file-to-string-component.png]]124 +<p align="center">[[image:crashcourse-messaging-pick-up-files--file-to-string-component.png||]]</p> 114 114 115 115 Configuration wise you need to select the option Delete files to ensure that the files are deleted 116 116 117 - [[image:Main.Images.Microlearning.WebHome@crashcourse-messaging-pick-up-files--file-to-string-configuration.png]]128 +<p align="center">[[image:crashcourse-messaging-pick-up-files--file-to-string-configuration.png||]]</p> 118 118 119 119 The result of linking the components together will lead to the following solution 120 120 121 - [[image:Main.Images.Microlearning.WebHome@crashcourse-messaging-pick-up-files--simple-solution.png]]132 +<p align="center">[[image:crashcourse-messaging-pick-up-files--simple-solution.png||]]</p> 122 122 123 123 With all this in mind, you have successfully learned how to set up your first connectivity via a messaging flow in eMagiz! 124 124 136 +===== Practice ===== 137 + 125 125 == 4. Assignment == 126 126 127 127 Build an entry that retrieves files from an external source and ensures that the data is delivered on the onramp queue. ... ... @@ -135,6 +135,8 @@ 135 135 * Has eMagiz the appropriate rights to read from the directory where the messages are to be retrieved from 136 136 * What is the format (i.e. XML, JSON, EDI, TXT, CSV, etc.) of the files that eMagiz needs to retrieve 137 137 151 + 152 + 138 138 == 6. Suggested Additional Readings == 139 139 140 140 If you are interested in this topic and want more information on it please read the help text provided by eMagiz. ... ... @@ -143,6 +143,10 @@ 143 143 144 144 This video demonstrates how you could have handled the assignment and gives you some context on what you have just learned. 145 145 146 - {{videoattachment="crashcourse-messaging-pick-up-files.mp4" reference="Main.Videos.Microlearning.WebHome"/}}161 +<iframe width="1280" height="720" src="../../vid/microlearning/crashcourse-messaging-pick-up-files.mp4" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> 147 147 148 -)))((({{toc/}}))){{/container}}{{/container}} 163 +</div> 164 +</div> 165 +</div> 166 + 167 +{{/html}}