Versions Compared

Key

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

...

    • Third actor in the FP-Akka QC workflow.
    • Akka actor for validating XXX the specimen collector an collection date fields.
    • Uses the class injected into the XXXsingleDateValidationService field (fp.services.InternalDateValidationService and its parent XXXInternalDateValidationService) to carry out validation tasks.
    • Receives individual SpecimenRecord instances from upstream MongoDBReader.
    • For each specimen record:
      • Disassembles the specimen record into fields.
      • Calls the validateScientificNamevalidateDate() method on the scientificNameService  singleDateValidationService (implemented by fp.services.SciNameServiceParentInternalDateValidationService) passing the individual field values extracted from the record.
      • Calls getters getCurationStatus(), getCorrectedScientificNamegetCorrectedDate(), getCorrectedAuthor(), getLSID(), getComment(), getServiceName() on the scientificNameService singleDateValidationService to extract validation results.
      • If the result returned by getCurationStatus() is CURATED or Filled_Inreplaces the scientificName and scientificNameAuthorshipeventDate fieldsfield in the input specimen record with the results from getCorrectedScientificName() and getCorrectedAuthorgetCorrectedDate() respectively.
      • Adds to the input specimen record three fields with labels scinCommentscinStatus, and scinSource using the results from getCurationStatus(), getComment(), and getServiceName() on the scientificNameService.
      • Forwards the updated specimen record to downstream actors in workflow.
      • Comment by T.M.  The NewScientificNameValidator actor overwrites the original scientificName and scientificNameAuthorship fields in each record that it updates.  Downstream actors in the workflow, including MongoDBWriter which saves the workflow results, do not have programmatic access to the original values in these fields.

...