Files
Artem Bilan 580f19f025 Migrate Zip sample from SI-Extensions
* Migrate `cafe-scripted` to GraalVM Polyglot
* Fix emails for authors
* Upgrade some deps
2024-10-03 16:33:51 -04:00
..
2023-11-21 16:22:28 -05:00
2016-09-21 11:15:14 -04:00
2024-10-03 16:33:51 -04:00

:imagesdir: ./images

= File Split and FTP Sample

- Looks for files `*.txt` in `/tmp/in`
- Reads file and writes to 3 files based on account (first 4 bytes in file)
- FileSplitter -> router [lines -> `lines`], [file marks -> `marks`]
- `marks` filters on EOF marker (drops SOF)
- pubsub [flush files], [ftp (x3)], [email result]
- Exceptions go to `tfrErrors` - sends failure email
- input file is renamed, based on final disposition

Test cases are provided for happy path and failure scenarios

Run `ApplicationTests` as a JUnit test from your IDE.

= Flow Visualization

This visualization is generated by the https://github.com/spring-projects/spring-flo/[Spring Integration Flow Viewer] which is currently under development.

image::flo1.png[]

image::flo2.png[]