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