Module: workers/scionRaiseQueue

workers/scionRaiseQueue

This is a Worker script that is used as "threaded queue" for managing SCION event execution: New events for SCION are queued in order to allow raising new events from within SCION-event-processing.

This "threaded queue" receives messages from the "Android environment engine" of mmir.DialogEngine - see manager/dialog/engineConfig.js::_androidFactory.

The message / work flow is as follows:

  • on receiving newJob: add new event-job to the queue
  • on receiving readyForJob:
  • if queue is empty: does nothing
  • if queue is not empty: take next job from queue and send it as a toDo message to SCION