nmemo

The nmemo table stores the case memo data after upgrading to iProcess Engine 11.6. Since iProcess Engine 11.6, all the new case memo data is stored in the blob(2G) data type in the nmemo table.

11.6

Note: A copy of a memo is kept in the pack_nmemo table if the memo is marked on an outstanding form.

Structure

The nmemo table has the following structure:

TABLE nmemo (
node_id INTEGER                    NOT NULL,
proc_id INTEGER                    NOT NULL,
casenum NUMERIC(20)               NOT NULL,
memo_id INTEGER                    NOT NULL,
memo_index INTEGER                   NOT NULL,
memo_size INTEGER                   NOT NULL,
memo_data BLOB(2G)       NOT NULL NOT LOGGED,
array_idx INTEGER                    NOT NULL)

Column

Description

node_id

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

proc_id

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

casenum

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

memo_id

Unique (for this case) ID of this memo.

memo_index

Index number into the set of rows that make up this memo.

This value is always 1.

memo_size

Size (in bytes) of the memo data for this row.

memo_data

Memo data.

array_idx

Either:

The array element index number of the memo.
-1, if the memo is not an array memo field.

Primary Key

The following primary key is defined for this table.

Key Name

Column(s)

pk_nmemo

casenum
memo_id
memo_index
proc_id
node_id
array_idx

Foreign Keys

The following foreign key is defined for this table.

Key Name

Column(s)

Referenced in Table...

fk_nmemo1

node_id
proc_id
casenum

case_information

Indexes

The following index is defined for this table.

Index Name

Column(s) Indexed

idx_nmemo_fk

casenum
proc_id
node_id

Table Activity

The nmemo table contains one row for each memo on the system. Rows are added, updated and deleted in the following situations.

A row is...

When...

added

either:

a memo field is first assigned.
a memo field is modified.

updated

never.

deleted

either:

a memo field is modified.
a case is purged.