File Processing
In this section we will move the files from Incoming to Outgoing folders, where they will be processed. We will then send an e-mail to the designated recipient. After the file is processed and the notification sent, we will move the file to the new Processed folder.
First we need to create a folder called Processed in the temp folder, in the same place as the Incoming and Outgoing folders. Since we are continuing on with the Chapter 4 code, we want to update Configuration.xml to add the new element, which we will call ProcessedPath. The ProcessedPath element will go under the current <FileWorkerOption> element because it will be configured on a per-file basis. In Example 5-2 you can see the new element added to our configuration ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access