Message Queue processor for the Gawati-Editor
Branch: dev
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
configs
public/stylesheets
routes
utils
views
.gitignore
Jenkinsfile
LICENSE
PUBLISH_WORKFLOW_TESTS.md
PUBLISH__RETRACT_WORKFLOW.md
README.md
apiroutes.js
app.js
constants.js
dev_npm_start.bat
logging.js
package.json
queues.js
statusMonitor.js
statusMonitor.routes.js
submitPublish.js
submitRetract.js

README.md

Editor Q Processor Component for

Gawati Publishing

  • Reads doc iri to be published from IRI_Q
  • Gets the XML and attachments for the iri
  • Creates a zip package
  • Posts the zip to Portal Q Processor
  • Writes status on STATUS_Q

Gawati Retraction

  • Reads doc iri to be retracted from IRI_Q
  • Posts the iri to Portal Q Processor
  • Writes status on STATUS_Q

Setup

  1. Clone the repo
    git clone https://github.com/gawati/gawati-editor-qprocessor.git
    
  2. Install packages
    npm install
    
  3. Run
    node ./bin/www
    

Dependencies

  1. This component needs to on the same system as gawati-editor-fe.
  2. It depends on several other components which are a part of the Publishing/Retraction Workflow. The following components need to be started, in the given order, prior to gawati-editor-qprocessor:
    • gawati-data
    • gawati-portal-publisher
    • gawati-portal-qprocessor

Config

  1. Port: The default port is set to 9003.
  2. Document attachments path: This is set in constants.js and refers to the filesystem path where attachments are stored for all Editor documents.
  3. Service end points: Endpoints for talking to gawati-editor-fe and gawati-portal-qprocessor. Set in configs/dataServer.json
Workflow