status

The status table holds the current status of each step of each case on the system.

Structure

The status table has the following structure:

TABLE status (
node_id number(5) NOT NULL,
proc_id number(5) NOT NULL,
casenum number(20) NOT NULL,
step_num number(4) NOT NULL,
step_status number(1) NOT NULL)

Column

Description

node_id

ID of the node that this step is hosted on, as defined in the nodes table.

proc_id

ID of the procedure that this step belongs to, as defined in the proc_index table.

casenum

Case number that this step belongs to, as defined in the case_information table.

step_num

Place number for this step (a unique ID that does not change between edits of a procedure). For internal use only.

step_status

Step status. Either: Not processed (0), Released (1), Outstanding (2) or Withdrawn (3).

Primary Key

The following primary key is defined for this table.

Key Name

Column(s)

Index Tablespace

pk_status

casenum
proc_id
step_num
node_id

HUGETABLESPACE

Foreign Keys

The following foreign key is defined for this table.

Key Name

Column(s)

Referenced in Table...

fk_status1

node_id
proc_id
casenum

case_information

Indexes

The following index is defined for this table.

Index Name

Column(s) Indexed

Tablespace

idx_status_fk

casenum
proc_id
node_id

HUGEINDEXSPACE

Storage

The following STORAGE values are defined for this table.

Value

Definition

Initial

HUGETABLESIZE

Percentage Increase

HUGETABLEPCTINCREASE

Tablespace

HUGETABLESPACE

Table Activity

The status table contains one row for each step of each case (open or closed) on the system. Rows are added, updated and deleted in the following situations.

A row is...

When...

added

a step is sent out, or a case is started.

updated

a step’s status changes.

deleted

a case is purged.