TRV Content Processing

When a marked TRV document is saved by the user, TariffShark files it away in the database in a temporary holding location and queues the TRV for content processing. Each queued TRV content item goes through a process of converting the content to the various formats needed to support the publishing of tariffs, generating filing XML, and assembling attachments content. Only at the conclusion of this process has the user-saved TRV content been permanently saved. The TRV content processing steps are detailed here.

  1. Marked TRV document is downloaded to client for processing
  2. TRV being process goes through validation process
    1. TRV exists in database
    2. Queued TRV not processed by another client
    3. Check marked content is a valid TariffShark document
    4. If content change was done by user, business rules are re-checked to ensure correct processing
    5. Document layouts for the TRV are validated
  3. Marked document layout, header/footer gets applied and document gets saved (full marked document). The document is used to generate marked PDF file.
  4. Clean RTF and Plain text content are generated
    1. All revisions get accepted
    2. Marked document layout header/footer are removed from the document
  5. Marked PDF is generated from the full marked document
  6. Clean PDF is generated from the full marked document
    1. All revisions are accepted
    2. Clean document layout and applicable header/footer are applied
  7. All generated files for the TRV are saved in the database and the item's processing result gets marked as 'Success'
  8. Files stored in a temporary folder on the user's computer are queued up for clean up
  9. On errors during processing, item's processing result gets marked as 'Fail' and gets re-queued if there are any retries left.