Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Purpose:

Jira Legacy
serverSystem JiraJIRA
serverId01505d01-b853-3c2e-90f1-ee9b165564fc
keyMDEXP-84

...

          The proposed sequence diagram of the library will look like this:

Image RemovedImage Added

Short descriptions of the mapping process in the library:

  1. The process(EntityReader, RecordWriter, ReferenceData) method is an entry point of the library;
  2. EntityReader reads the value of the field by rule;
  3. TranslationFunction applying the mapped value by provided settingsreference data;
  4. RecordWriter writes the result mapped field with the tag provided by the rule.
  5. After all fields, that have rules, are mapped, the writer will return the result MARC object in String format.

...

  1. Implement EntityReader with JSON object of the instance to map and RecordWriter. You can use existing implementations of EntityReader and RecordWriter. More about existing implementations you can find here;
  2. Implement ReferenceData interface, and provide your logic for getting and storing reference data for the fields that required it from Inventory;
  3. Create a list of Rule objects for the mapping process (default data-export rules located here);
  4. Create RuleProcessor object with a created list of rules;
  5. Call process(EntityReader, EntityWriter, Settings) method, and provide all necessary objects for it.

...