Status Fields in MOOT

Status-like database fields for objects in MOOT

This document is intended to address JIRA LCT-4

Object type Field name Allowed values Notes
Config status STARTED ABORT CREATED INVALID Since creating a Config is a lengthy procedure with many possible failures, the db entry is first created with status = STARTED. Only if the procedure completes successfully is it changed to CREATED. After creation, clients may mark a Config INVALID. No client-callable MOOT functions are provided to change status to CREATED from any of the other values.
Config active_state ACTIVE INACTIVE MULTI A successfully-created Config starts out ACTIVE. Applications may change it at will between states ACTIVE and INACTIVE. State MULTI is currently unused.
Parameter file status STARTED ABORT CREATED INVALID Similar to Config, the db entry is first created with status = STARTED. Only if the procedure completes successfully is it changed to CREATED.
Ancillary file status STARTED ABORT CREATED INVALID Similar to Config, the db entry is first created with status = STARTED. Only if the procedure completes successfully is it changed to CREATED.
Ancillary file quality PROD DEV TEST SUPSED INVALID Use of this field is deprecated in favor of ancillary aliases
Vote file status STARTED ABORT CREATED INVALID Similar to Config, the db entry is first created with status = STARTED. Only if the procedure completes successfully is it changed to CREATED.
FSW input status new added invalid
(or any other string up to 32 characters)
Refers to a binary file suitable for registration with fmx. new is the status assigned when the row is first created. added means the corresponding binary file has been successfully registered with fmx.

Note: currently the status and active_state fields of Config are the only status-like fields which may be modified directly by client code. However Vote files and Ancillary files may in effect be activated or de-activated by assigning or deassigning aliases to them.

Status-like database fields for classes of objects in MOOT

Class type Field name Allowed values Notes
Parameter class active_state ACTIVE INACTIVE Allows for evolution of collection of supported Parameter classes
Precincts status OK
(or any other string up to 32 characters in length)
Precincts may be thought of as vote classes. If status is set to some value other than OK precinct cannot be referred to by new entries in other tables.

There are more tables with status-like fields but, even more than the class tables referred to above, they are internal constructs not of much interest to clients.


Created: 03-Dec-2007
Last revised: Monday, 03-Dec-2007 16:22:08 PST
J. Bogart jumping