BATCHWORKFLOW

The BATCHWORKFLOW table stores the workflows that are used for the various batches in the system.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(200) Default = ''
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.
EXCEPTIONBATCHNUMBERCODE tinyint Default = 0 Indicator of how to handle exception batch numbers.
INCLUDEEXCEPTIONPREFIX bit Default = 0 Whether or not to include a prefix.
EXCEPTIONPREFIX nvarchar(8) Default = '' The prefix for the exception batch.

Foreign Keys

Foreign Key Field Type Null Notes Description
BATCHTYPECATALOGID uniqueidentifier yes BATCHTYPECATALOG.ID FK to BATCHTYPECATALOG
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
BATCHNUMBERINGSCHEMEID uniqueidentifier yes BATCHNUMBERINGSCHEME.ID FK to BATCHNUMBERINGSCHEME

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHWORKFLOW_DATEADDED DATEADDED yes
IX_BATCHWORKFLOW_DATECHANGED DATECHANGED
PK_BATCHWORKFLOW ID yes yes
UC_BATCHWORKFLOW_NAME NAME yes

Triggers

Trigger Name Description
TR_BATCHWORKFLOW_AUDIT_UPDATE
TR_BATCHWORKFLOW_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHTEMPLATE BATCHWORKFLOWID
BATCHWORKFLOWSTATE BATCHWORKFLOWID
BATCHWORKFLOWTASK BATCHWORKFLOWID