BBWORKFLOWTASK
Contains tasks that have been assigned to workflow inboxes
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
TASKSUBJECT |
nvarchar(255) |
|
Default = '' |
|
TASKDESCRIPTION |
nvarchar(max) |
|
Default = '' |
|
DATEASSIGNED |
datetimeoffset |
|
Default = sysdatetimeoffset() |
|
DATEDUE |
datetimeoffset |
yes |
|
|
DATECOMPLETED |
datetimeoffset |
yes |
|
|
CATEGORY |
nvarchar(50) |
|
Default = '' |
|
CUSTOMIDENTIFIER |
nvarchar(100) |
|
Default = '' |
User-definable custom identifier. |
SEQUENCEID |
int |
|
|
Identity column used to increment the default lookupid. |
DATEADDED |
datetime |
|
Default = getdate() |
Indicates the date this record was added. |
DATECHANGED |
datetime |
|
Default = getdate() |
Indicates the date this record was last changed. |
TS |
timestamp |
|
|
Timestamp. |
TSLONG |
bigint (Computed) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
TASKSTATUSCODE |
tinyint |
|
Default = 0 |
Indicates if the task is open, completed, or cancelled. |
TASKSTATUS |
nvarchar(9) (Computed) |
yes |
CASE [TASKSTATUSCODE] WHEN 0 THEN N'Open' WHEN 1 THEN N'Completed' WHEN 2 THEN N'Cancelled' END |
Provides a translation for the 'TASKSTATUSCODE' field. |
HIDDEN |
bit |
|
Default = 0 |
|
USERCANCANCEL |
bit |
|
Default = 0 |
|
USERCANCOMPLETE |
bit |
|
Default = 0 |
|
LOOKUPID |
nvarchar(100) (Computed) |
yes |
(CASE LEN(CUSTOMIDENTIFIER) WHEN 0 THEN 'T-' + CAST(SEQUENCEID AS nvarchar(20)) ELSE CUSTOMIDENTIFIER END) |
Unique identifier that supports user defined values as well as system generated values. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
BBWORKFLOWINSTANCEINFOID |
uniqueidentifier |
|
BBWORKFLOWINSTANCEINFO.ID
|
FK to BBWORKFLOWINSTANCEINFO |
BBWORKFLOWINBOXID |
uniqueidentifier |
|
BBWORKFLOWINBOX.ID
|
FK to BBWORKFLOWINBOX |
COMPLETEDBY_APPUSERID |
uniqueidentifier |
yes |
APPUSER.ID
|
FK to APPUSER |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
TASKPAGEID |
uniqueidentifier |
yes |
PAGEDEFINITIONCATALOG.ID
|
The ID of a page that displays information and actions about this task |
BBWORKFLOWBUSINESSACTIVITYID |
uniqueidentifier |
yes |
BBWORKFLOWBUSINESSACTIVITY.ID
|
The workflow business activity that was executing when this task was assigned. |
OWNER_APPUSERID |
uniqueidentifier |
yes |
APPUSER.ID
|
|
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_BBWORKFLOWTASK_BBWORKFLOWBUSINESSACTIVITYID |
BBWORKFLOWBUSINESSACTIVITYID |
|
|
|
IX_BBWORKFLOWTASK_BBWORKFLOWINBOXID |
BBWORKFLOWINBOXID |
|
|
|
IX_BBWORKFLOWTASK_BBWORKFLOWINSTANCEINFOID |
BBWORKFLOWINSTANCEINFOID |
|
|
|
IX_BBWORKFLOWTASK_DATEADDED |
DATEADDED |
|
|
yes |
IX_BBWORKFLOWTASK_DATECHANGED |
DATECHANGED |
|
|
|
IX_BBWORKFLOWTASK_DATECOMPLETED |
DATECOMPLETED |
|
|
|
IX_BBWORKFLOWTASK_DATEDUE |
DATEDUE |
|
|
|
IX_BBWORKFLOWTASK_OWNER_APPUSERID |
OWNER_APPUSERID |
|
|
|
PK_BBWORKFLOWTASK |
ID |
yes |
yes |
|
UC_BBWORKFLOWTASK_LOOKUPID |
LOOKUPID |
yes |
|
|
Triggers
Referenced by