Default implementation of the file exporting mechanism.
Syntax
synchronized boolean
export
(
final ClearingEvent
event
,
long
callerId
)
Usage
- Try to acquire a new batchrun lock
- Save the batchrun in the local variable batchRunLock
- Check if there is any data available to export
- Initialize the spring batch context
- Create a new file
- Initialize the item writer with the newly created file
- Open the item reader
- Open the item writer
- Signal a new file was created (creating a new ams files entry)
- Do the actual export
- Close item reader
- Close item writer
- Update exported records (e.g. set new status)
- Validate the exported files