When Kafka subscriber receives notification message from inventory-storage, it should check the new and old attributes of the item and send item to accession if the new effective location is "marked as remote" (this information is in cache).
Accession flow is initiated on the FOLIO if item effective location is changed to the one, which is marked remote and previous item location is not assigned to the same remote storage (not remote or another remote storage)
If item location is changed to remote (the ids of remote location are in cache, because this remote location information in managed by the same module), the accession should be started.
There should be configured reasonable maximum size for the cache not to have OOM.
Kafka topic name: inventory.item
In order to get title and author remote-storage module need to get instance from inventory by its instance id. The instance id will be in the Kafka message.
Accession queue (DB table):
barCode (string) - item barcode
created (date) - current timestamp
accessioned (date or null) - default null
remote_storage_id (uuid) - id of remote-storage configuration
callNumber (string) - the effective call number of the item
title (string) - title of the related instance
author (string) - primary contributer of the related instance