By | January 30, 2014 | 0 Comment
We can do multiple things with file adapter and one of it is file listing. It is used to list all the files that are there in the directory.
In this post, we will show you how to use this option inside file adapter.
We have created three files under C:\tmp directory. We will use file adapter “File List” option to list all these files.
First create one-way BPEL process and after that add one file adapter. Name it and click on next.
Choose “List files” option as we will list all the files using this option.
Specify the directory path from where we need to list all the files. Also specify File name pattern.
Once you are done with file adapter creation then wire your BPEL process with file adapter.
Inside BPEL process, link your Invoke activity to file adapter and create input & output variables.
Deploy your composite and test it. You should be able to see list of all the files available at that location.
Sample code can be downloaded from below.