Field |
Field Type |
Null |
Notes |
Description |
WORKFLOWSTARTDATE |
datetimeoffset |
|
Default = sysdatetimeoffset() |
The date and time that the workflow started |
STARTSTATUSCODE |
tinyint |
|
Default = 0 |
Indicates the start status for this workflow instance. |
STARTSTATUS |
nvarchar(7) (Computed) |
 |
CASE [STARTSTATUSCODE] WHEN 0 THEN N'Pending' WHEN 1 THEN N'Started' WHEN 2 THEN N'Failed' END |
Provides a translation for the 'STARTSTATUSCODE' field. |
DATEADDED |
datetime |
|
Default = getdate() |
|
COMPLETIONSTATECODE |
tinyint |
|
Default = 0 |
Indicates the ActivityInstanceState for this workflow instance. |
COMPLETIONSTATE |
nvarchar(8) (Computed) |
 |
CASE [COMPLETIONSTATECODE] WHEN 0 THEN N'None' WHEN 1 THEN N'Closed' WHEN 2 THEN N'Canceled' WHEN 3 THEN N'Faulted' END |
Provides a translation for the 'COMPLETIONSTATECODE' field. |
WORKFLOWENDDATE |
datetimeoffset |
 |
|
The date and time that the workflow ended |
ISRUNNING |
bit (Computed) |
 |
(CASE WHEN ((COMPLETIONSTATECODE = 0 ) and (STARTSTATUSCODE = 1 )) THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT) END ) |
True if the workflow has started and is running |
CANCEL_OR_FAULT_REASON |
nvarchar(max) |
|
Default = '' |
The reason why the workflow was canceled or faulted. |
WORKFLOWINSTANCEID |
uniqueidentifier |
 |
|
The internal Workflow Foundation workflow instance id. |
CUSTOMIDENTIFIER |
nvarchar(100) |
|
Default = '' |
User-definable custom identifier. |
SEQUENCEID |
int |
|
|
Identity column used to increment the default lookupid. |
LOOKUPID |
nvarchar(100) (Computed) |
 |
(CASE LEN(CUSTOMIDENTIFIER) WHEN 0 THEN 'W-' + CAST(SEQUENCEID AS nvarchar(20)) ELSE CUSTOMIDENTIFIER END) |
Unique identifer that supports user defined values as well as system generated values. |