[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

12.3 Enabling Asynchronous Event Handling

In order to enable asyncronous event handling, the ASTART command is used. In the following example, we will enable asynchronous event handling for the INTERRUPT event class:

  ASTART "INTERRUPT"

Omitting the "INTERRUPT" argument will enable asynchronous event handling for all event classes. See ASTART in the commands section for more details.

Once this is done, any event handlers registered for the INTERRUPT event class in ^$JOB will be executed asynchronously as appropriate.

Please note that ASTART "TRIGGER" is run implicitly at FreeM startup, to ensure consistency in applications depending on business logic contained in system-wide database triggers. To disable this behavior, add ASTOP "TRIGGER" to the LOCAL.STARTUP routine in the USER namespace. If LOCAL.STARTUP does not yet exist in your environment, you may create it by typing fmadm edit routine USER LOCAL.STARTUP from your UNIX command-line shell.


This document was generated on January 3, 2022 using texi2html 5.0.