Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(200)   Default = ''
 ALLOWCOMMIT bit   Default = 0 Indicates if this state in the workflow should allow the commit process to be executed.
 ISINITIALSTATE bit   Default = 0 Indicates if this state is the initial state in the workflow.
 ALLOWEDIT bit   Default = 1 Indicates if this state in the workflow should allow the batch to be editable.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 OVERDUEIN tinyint   Default = 0 The number of days that the state will be overdue in.
 ENFORCETOTALMATCHING bit   Default = 0 Indicates if the batch is commited while in this state, should projected and actual total have to match.

Foreign Key Field Type Null Notes Description
 BATCHWORKFLOWID uniqueidentifier   BATCHWORKFLOW.ID FK to BATCHWORKFLOW
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_BATCHWORKFLOWSTATE_DATEADDED DATEADDED    
 IX_BATCHWORKFLOWSTATE_DATECHANGED DATECHANGED      
 PK_BATCHWORKFLOWSTATE ID  
 UIX_BATCHWORKFLOWSTATE_NAME_BATCHWORKFLOWID NAME, BATCHWORKFLOWID    

Trigger Name Description
 TR_BATCHWORKFLOWSTATE_AUDIT_UPDATE
 TR_BATCHWORKFLOWSTATE_AUDIT_DELETE

Referenced by Field
 BATCH BATCHWORKFLOWSTATEID
 BATCHWORKFLOWSTATUS BATCHWORKFLOWSTATEID
 BATCHWORKFLOWTASK BATCHWORKFLOWSTATEID
 BATCHWORKFLOWTASK NEXTBATCHWORKFLOWSTATEID
 SYSTEMROLEPERM_BATCHWORKFLOWSTATE BATCHWORKFLOWSTATEID

Entity-Relationship diagram of this table