This article will explain how to validate files on the source local directory using Groovy Component and Google Guava. This is applicable if you have a requirement that your Mule ESB Interface should only run if required files are there or exist on the source local directory. For instance, Our Mule ESB Interface needs 2 files to process. For example, We have PERSON_DATA_2018.txt and SALARY_DATA_2018.txt. If both files are existing on the source local directory, then the interface will do further processing otherwise stop the process and log a message indicating required file does not exist.
file-directory-validationFlow — Main execution flow that runs every 5 seconds. It simply validates the source path and if the 2 required files exist, it will read those files and log their content. https://goo.gl/xJyH2m #DataIntegration #ML
Share this:
- Click to share on Facebook (Opens in new window)
- Click to share on Twitter (Opens in new window)
- Click to email a link to a friend (Opens in new window)
- Click to share on LinkedIn (Opens in new window)
- Click to share on Tumblr (Opens in new window)
- Click to share on Pinterest (Opens in new window)
- Click to share on Reddit (Opens in new window)