BBWORKFLOWDATAITEM

Contains arbitrary data payloads that can be associated with a workflow instance for use by the workflow logic

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
ITEMKEY nvarchar(255) Default = '' A unique key to identify this data item in the workflow
DATAITEM nvarchar(max) Default = '' Arbitrary data for use in the workflow.
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.

Foreign Keys

Foreign Key Field Type Null Notes Description
BBWORKFLOWINSTANCEINFOID uniqueidentifier BBWORKFLOWINSTANCEINFO.ID FK to BBWORKFLOWINSTANCEINFO
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_BBWORKFLOWDATAITEM_BBWORKFLOWINSTANCEINFOID BBWORKFLOWINSTANCEINFOID
IX_BBWORKFLOWDATAITEM_DATEADDED DATEADDED yes
IX_BBWORKFLOWDATAITEM_DATECHANGED DATECHANGED
PK_BBWORKFLOWDATAITEM ID yes yes
UIX_BBWORKFLOWDATAITEM_BBWORKFLOWINSTANCEINFOID_ITEMKEY BBWORKFLOWINSTANCEINFOID, ITEMKEY yes

Triggers

Trigger Name Description
TR_BBWORKFLOWDATAITEM_AUDIT_UPDATE
TR_BBWORKFLOWDATAITEM_AUDIT_DELETE