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 INTEGER NOT NULL,
proc_num NUMERIC(5) NOT NULL,
case_num NUMERIC(20) 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

Triggers

The following DELETE CASCADE trigger is defined for this table.

Trigger Name

Triggered by

Affects Table(s)

tr_predict_lock

DELETE

predict

Indexes

None.

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.