Pre-processing Object Selectors

In the implementation of FTM event prioritization, the core code that initializes an application at startup time now modifies the object selectors of the application to select TECH_PRIORITY from the database. This is so that the technical priority of the transition objects is available to be passed to the event API when the objects are raising events.

All FTM objects derive from the OBJ_BASE table, which contains the TECH_PRIORITY field, so it can be assumed that the addition of TECH_PRIORITY to the object selector will also provide a valid SQL statement.

In the cases where the object selector is selecting from two more tables and objects, the TECH_PRIORITY will use the prefix of the object in the select statement that is deemed to be the 'primary' object, which is the object whose STATUS field is being selected.