...
Newspaper-batch-event-framework
This component consists of the following parts, in order of invocation:
trigger-on-new-batch script Configured by IT Operations and run from a cron job. This script looks for new (not previously processed) batches received from Ninestars. Then calls the CreateBatch java module with the batch ID and roundtrip number from the received batch directory structure, as well as the connection-information to DOMS and a PID (Persistent ID) generator.
CreateBatch Java module Bridges the script with DomsEventClient, by receiving command line arguments, and calling methods on DomsEventClient to create a batch object in DOMS with a Premis event representing the triggering attached.
DomsEventClient Java module Creates a batch object in DOMS with a Premis event built using the PremisManipulator.
...
The code can be found here: https://github.com/statsbiblioteket/newspaper-batch-event-framework
The role of this component is to notice when a new batch has arrived on disk, and then create an initial object for the batch in DOMS, to be later expanded upon by other components. The DomsEventClient module depends on our own developed
dk.statsbiblioteket.doms.central.centralWebservice-lib and a running DOMS somewhere.
Details are described in: https://github.com/statsbiblioteket/newspaper-batch-event-framework/blob/master/README.md