Skip to Content
Evaluate Get Started Plugins Glossary

Workflow Process Instance

The WorkflowProcessInstance table is part of the SQLite 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 18 columns in database order. Data types and default expressions use the syntax defined by SQLite.

WorkflowProcessInstance columns
PositionColumnDatabase typeNullablePrimary keyDefault
1IdTEXTNoYes-
2StateNameTEXTYesNo-
3ActivityNameTEXTNoNo-
4SchemeIdTEXTNoNo-
5PreviousStateTEXTYesNo-
6PreviousStateForDirectTEXTYesNo-
7PreviousStateForReverseTEXTYesNo-
8PreviousActivityTEXTYesNo-
9PreviousActivityForDirectTEXTYesNo-
10PreviousActivityForReverseTEXTYesNo-
11ParentProcessIdTEXTYesNo-
12RootProcessIdTEXTNoNo-
13TenantIdTEXTYesNo-
14StartingTransitionTEXTYesNo-
15SubprocessNameTEXTYesNo-
16CreationDateINTEGERNoNo(CAST(strftime('%s', 'now') AS INTEGER) * 10000000) + 621355968000000000
17LastTransitionDateINTEGERYesNo-
18CalendarNameTEXTYesNo-

Database indexes

The WorkflowProcessInstance table defines 3 database indexes. Definitions retain the column or field order and sort direction used by the database.

WorkflowProcessInstance indexes
IndexUniqueDefinition
WorkflowProcessInstance_CalendarName_idxNoCREATE INDEX "WorkflowProcessInstance_CalendarName_idx" ON "WorkflowProcessInstance" ("CalendarName")
WorkflowProcessInstance_RootProcessId_idxNoCREATE INDEX "WorkflowProcessInstance_RootProcessId_idx" ON "WorkflowProcessInstance" ("RootProcessId")
sqlite_autoindex_WorkflowProcessInstance_1YesId