Workflow Process Instance
The WorkflowProcessInstance table is part of the SQL Server database schema used by Workflow Engine. The WorkflowProcessInstance table stores the current state and execution metadata for process instances. This page lists the table columns in database order together with types, nullability, primary keys, defaults, and indexes.
Table columns
The WorkflowProcessInstance table contains 19 columns in database order. Data types and default expressions use the syntax defined by SQL Server.
| Position | Column | Database type | Nullable | Primary key | Default |
|---|---|---|---|---|---|
| 1 | Id | uniqueidentifier | No | Yes | - |
| 2 | StateName | nvarchar(max) | Yes | No | - |
| 3 | ActivityName | nvarchar(max) | No | No | - |
| 4 | SchemeId | uniqueidentifier | Yes | No | - |
| 5 | PreviousState | nvarchar(max) | Yes | No | - |
| 6 | PreviousStateForDirect | nvarchar(max) | Yes | No | - |
| 7 | PreviousStateForReverse | nvarchar(max) | Yes | No | - |
| 8 | PreviousActivity | nvarchar(max) | Yes | No | - |
| 9 | PreviousActivityForDirect | nvarchar(max) | Yes | No | - |
| 10 | PreviousActivityForReverse | nvarchar(max) | Yes | No | - |
| 11 | ParentProcessId | uniqueidentifier | Yes | No | - |
| 12 | RootProcessId | uniqueidentifier | No | No | - |
| 13 | IsDeterminingParametersChanged | bit | Yes | No | - |
| 14 | TenantId | nvarchar(128) | Yes | No | - |
| 15 | StartingTransition | nvarchar(max) | Yes | No | - |
| 16 | SubprocessName | nvarchar(max) | Yes | No | - |
| 17 | CreationDate | datetime | No | No | (getdate()) |
| 18 | LastTransitionDate | datetime | Yes | No | - |
| 19 | CalendarName | nvarchar(450) | Yes | No | - |
Database indexes
The WorkflowProcessInstance table defines 3 database indexes. Definitions retain the column or field order and sort direction used by the database.
| Index | Unique | Definition |
|---|---|---|
IX_CalendarName | No | [CalendarName] |
IX_RootProcessId | No | [RootProcessId] |
PK_WorkflowProcessInstance | Yes | [Id] |