- Create a service that would be called when received a POST request on /change-manager/jobExecutions/
/records (replace stub implementation of the endpoint).
- JobExecutionSourceChunk entity should be created with InProgress status and saved to the db. see
- Check JobExecution status. If it is not IMPORT_IN_PROGRESS, lock the JobExecution and update its state, unlock JobExecution.
- Initialize chunk processing by calling ChangeEngineService to parse records.
- After parsing is finished update the JobExecutionSourceChunk status to COMPLETED.
- Check all chunks, if last chunk exists and all are COMPLETED, check JobExecution status. If it is not IMPORT_FINISHED, lock the JobExecution and update its state, call stub method startMarcRecordsProcessing, unlock JobExecution.