BATCHWORKFLOW (4.0SP14)

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

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BATCHTYPECATALOGID

uniqueidentifier

true

FK to BATCHTYPECATALOG

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

BATCHNUMBERINGSCHEMEID

uniqueidentifier

true

FK to BATCHNUMBERINGSCHEME

Fields
Field Field Type Null Notes Description

NAME

nvarchar(200)

false

''

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

EXCEPTIONBATCHNUMBERCODE

tinyint

false

0

Indicator of how to handle exception batch numbers.

INCLUDEEXCEPTIONPREFIX

bit

false

0

Whether or not to include a prefix.

EXCEPTIONPREFIX

nvarchar(8)

false

''

The prefix for the exception batch.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BATCHWORKFLOW_DATEADDED

DATEADDED

False

False

True

IX_BATCHWORKFLOW_DATECHANGED

DATECHANGED

False

False

False

PK_BATCHWORKFLOW

ID

True

True

False

UC_BATCHWORKFLOW_NAME

NAME

True

False

False

Triggers
Trigger Name Description

TR_BATCHWORKFLOW_AUDIT_UPDATE

TR_BATCHWORKFLOW_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHTEMPLATE

BATCHWORKFLOWID

BATCHWORKFLOWSTATE

BATCHWORKFLOWID

BATCHWORKFLOWTASK

BATCHWORKFLOWID