DATAFORMWORKFLOWTRIGGER

Stores a list of data forms that trigger workflows.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
WORKFLOWARGSMAP xml yes Describes the field mapping between the trigger form and the workflow form.
ENABLED bit Default = 1 Indicates whether or not the trigger is enabled
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
TRIGGERFORMINSTANCEID uniqueidentifier DATAFORMINSTANCECATALOG.ID The instance ID of the data form that will trigger a workflow.
WORKFLOWID uniqueidentifier BBWORKFLOWCATALOG.ID The ID of the workflow that will be triggered when the form is saved.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_DATAFORMWORKFLOWTRIGGER_DATEADDED DATEADDED yes
IX_DATAFORMWORKFLOWTRIGGER_DATECHANGED DATECHANGED
PK_DATAFORMWORKFLOWTRIGGER ID yes yes
UIX_DATAFORMWORKFLOWTRIGGER_TRIGGERFORMINSTANCEID_WORKFLOWID TRIGGERFORMINSTANCEID, WORKFLOWID yes

Triggers

Trigger Name Description
TR_DATAFORMWORKFLOWTRIGGER_AUDIT_UPDATE
TR_DATAFORMWORKFLOWTRIGGER_AUDIT_DELETE