I have managed to confuse myself once more in mule.
I must accept a flat file from a vendor and cannot get the file reformatted. The file has a large number of records with fixed-width fields, perfect for the mule data-mapper. This works fine, mapping to a java POJO to create a collection of records to process.
The issue: The last record in the file is a summary record of a completely different format. The problem is, the format not only changes the data layout, the record length also changes. This exceptions the data-mapper as the record is too short for the format definition.
Are there any ideas on how to allow for this type of mixed formatting within a file, or instead of standard mule features do I need to make custom transformers to split the records and react to record lengths to separate formats?
Yes, I am aware this type of use of flat files is outdated, but dealing with legacy systems requires accepting the data as produced until the system can be retired.