Skip to content

Step interfaces

Denis Ah-Kang edited this page Mar 31, 2016 · 9 revisions

Steps in the publishing algorithm.
See also: app.js#L104 and lib/orchestrator.js#L353.

  1. Retrieve documents
  • Inputs:
    • Editor's URL
    • Location to download
  • Outputs:
    • Status: ok, error
    • Errors
  1. Specberus
  • Inputs:
    • URL to check
    • Profile?
  • Outputs:
    • Status: ok, failure, error
    • Errors
  1. Get metadata
  • Inputs:
    • Document temporary location
  • Outputs:
    • Status: ok, error
    • Document metadata
    • Errors
  1. Publication
  2. Install on TR under /TR/[year]/WD-[shortname]-[yyyymmdd]/ with CVS - Inputs:
    • Document temporary location
    • Final destination under TR - Outputs:
    • Status: ok, error
    • Errors
  3. Add entries to the DB (publication system call) - Inputs:
    • Document metadata - Outputs:
    • Status: ok, error
    • Errors
  4. Generate shortlink - Inputs:
    • URL in TR
    • Shortname - Outputs:
    • Status: ok, error
    • Errors
  5. Generate CfE reminders - Inputs:
    • None? - Outputs:
    • Status: ok, error
    • Errors
  6. Send notifications?