Mule ESB 3.9: Validate Files in Local Directory Using Groovy Component (Google Guava)

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

Subscribe To Newsletter

Sign up for my newsletter and get the latest technology news

2019 © Craig Brown PhD. All rights reserved.