# Workflow Process Instance Status The `WORKFLOWPROCESSINSTANCES` table is part of the [Oracle database schema](https://docs.workflowengine.io/database-schema/oracle/) used by Workflow Engine. The `WORKFLOWPROCESSINSTANCES` table stores process execution status, locks, and runtime ownership. This page lists the table columns in database order together with types, nullability, primary keys, defaults, and indexes. ## Table columns The `WORKFLOWPROCESSINSTANCES` table contains 6 columns in database order. Data types and default expressions use the syntax defined by Oracle. Table: WORKFLOWPROCESSINSTANCES columns | Position | Column | Database type | Nullable | Primary key | Default | |----------|--------|---------------|----------|-------------|---------| | 1 | `ID` | `RAW(16)` | No | Yes | - | | 2 | `STATUS` | `NUMBER(3,0)` | No | No | - | | 3 | `LOCKFLAG` | `RAW(16)` | No | No | - | | 4 | `RUNTIMEID` | `NVARCHAR2(900)` | No | No | - | | 5 | `SETTIME` | `DATE` | No | No | - | | 6 | `TENANTID` | `NVARCHAR2(128)` | Yes | No | - | ## Database indexes The `WORKFLOWPROCESSINSTANCES` table defines 3 database indexes. Definitions retain the column or field order and sort direction used by the database. Table: WORKFLOWPROCESSINSTANCES indexes | Index | Unique | Definition | |-------|--------|------------| | `IDX_WORKFLOWPROCESSINSTANCES_S` | No | `STATUS` | | `IDX_WORKFLOWPROCESSINSTANCES_SR` | No | `STATUS, RUNTIMEID` | | `PK_WORKFLOWPROCESSINSTANCES` | Yes | `ID` |