predict_lock

The predict_lock table stores the locks that are used to control access to the predict table.

Structure

The predict_lock table has the following structure:

TABLE predict_lock (
node_id NUMERIC(5) NOT NULL,
proc_num NUMERIC(5) NOT NULL,
case_num NUMERIC(15) NOT NULL)

Column

Description

node_id

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

proc_num

ID of the procedure that this prediction lock applies to, as defined in the proc_index table.

case_num

Case number of the main case that this prediction lock applies to, as defined in the case_information table.

Primary Key

The following primary key is defined for this table.

Key Name

Column(s)

pk_predict_lock

node_id
proc_num
case_num

Foreign Keys

The following foreign key is defined for this table.

Key Name

Column(s)

Referenced in Table...

Column(s)

fk_predict_lock1

node_id
proc_num
case_num

case_information

node_id
proc_id
casenum

Indexes

The following index is defined for this table.

Index Name

Column(s) Indexed

idx_pred_lock_fk

case_num
proc_num
node_id

Table Activity

The predict_lock table contains one row for every main case on the system that currently has prediction data defined in the predict table. Rows are added, updated and deleted in the following situations.

A row is...

When...

added

background prediction is enabled on the iProcess Engine, and a case that has prediction enabled is started.

Note: Case prediction can be enabled and disabled using the ENABLE_CASE_PREDICTION process attribute. See TIBCO iProcess Engine Administrator's Guide for more information.

updated

never.

deleted

a case that has prediction enabled is purged.