Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

mulesoft-consulting/example-read-nacha-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read NACHA files

Purpose

This example shows how to read and process NACHA files and parse the ACH format.

To read ACH format I used code from an open source project http://achviewer.sourceforge.net/.
This project is a Swing Java application that allows to open ach files, view the contents and modify and add records.

How it works

Using a custom java component I embedded the code from this project. This will read the file and return Pojos

NachaToJavaTransformer.java: is the code for a MessageTransformer that references the ACHViewer code.
This Message Transformer is used in the flow to read the files.

How to run the example

1. To read, modify or create new files, run the app from the command line:
java -jar ACHViewer.jar

2. Open the mule project

3. The src/test/resources contains two example files.
Place them in a temp folder and modify the mule-app.properties with the properties for input folder and output folder.

4. The file inbound will pick and read the files. The message processor will process the file contents and return Pojos with the ACH structure. The datamapper will transform that to a Map.

Versions

This example is built with runtime 3.5.1

References

ACH Viewer open source project: http://achviewer.sourceforge.net/

About

An example of how to read and process NACHA files (ACH format)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages