Event Daemon

Introduction

The event daemon the part of DrawMGT that runs time-consuming jobs that cannot be completed in the web browser. It runs as a background task and gets its commands (events) from the system database. Users schedule event daemon jobs indirectly via commands such as: transmit submittal, update comment, etc.

The main jobs performed by the event daemon are:

Note: The FTP scraper and upload events have obnly been used on the KEJV project.

Basic Operation of Event Daemom

Implementation

Source Files

Event Processing

Comment Update Emails

Drawing Upload

FTP Scraper

Submittal Transmission

Event Templates

Many event handlers make use of templates for generating emails, email subject lines, submittal transmission forms, etc.

The templates are defined in the database table Templates

Event Dispatching

Event dispatching is performed by app/event/EventDispatcher.php.

The event dispatcher can be call by cron or from the command line (for testing).

You must be in the DrawMGT root directory (e.g. app/..) in order to run the event daemon.

Events Queued in Database

The event daemon reads queued events from the database table Events.

Activation by Crontab

Development and Testing Tips

EventDaemon (last edited 2010-01-04 15:42:34 by softxs)

Copyright 2008-2014, SoftXS GmbH, Switzerland