BUSINESSPROCESSCOMMPREF

Contains communication preference settings for all business processes.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
BUSINESSPROCESSPARAMETERSETID uniqueidentifier This is the ID of the parameter set for this business process instance.
EXCLUDEDECEASED bit Default = 1 Indicates whether or not to exclude deceased constituents.
EXCLUDEINACTIVE bit Default = 1 Indicates whether of not to exclude inactive constituents.
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.
DATETYPECODE tinyint Default = 0 Indicates the type of date to be used.
ASOFDATE datetime yes Indicates the beginning date of a valid exclusion or inclusion.
DATETYPE nvarchar(15) (Computed) yes CASE [DATETYPECODE] WHEN 0 THEN N'Today' WHEN 1 THEN N<Specific date> END Provides a translation for the 'DATETYPECODE' field.

Foreign Keys

Foreign Key Field Type Null Notes Description
BUSINESSPROCESSCATALOGID uniqueidentifier BUSINESSPROCESSCATALOG.ID A foreign key to the business process table.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_BUSINESSPROCESSCOMMPREF_DATEADDED DATEADDED yes
IX_BUSINESSPROCESSCOMMPREF_DATECHANGED DATECHANGED
PK_BUSINESSPROCESSCOMMPREF ID yes yes
UIX_BUSINESSPROCESSCOMMPREF_BUSINESSPROCESSCATALOGID_BUSINESSPROCESSPARAMETERSETID BUSINESSPROCESSCATALOGID, BUSINESSPROCESSPARAMETERSETID yes

Triggers

Trigger Name Description
TR_BUSINESSPROCESSCOMMPREF_AUDIT_UPDATE
TR_BUSINESSPROCESSCOMMPREF_AUDIT_DELETE