BATCHWORKFLOWSTATE
The BATCHWORKFLOWSTATE table stores the workflow states that are used for the various batch workflows in the system.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
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) |
yes |
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 committed while in this state, should projected and actual total have to match. |
Foreign Keys
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. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_BATCHWORKFLOWSTATE_DATEADDED |
DATEADDED |
|
|
yes |
IX_BATCHWORKFLOWSTATE_DATECHANGED |
DATECHANGED |
|
|
|
PK_BATCHWORKFLOWSTATE |
ID |
yes |
yes |
|
UIX_BATCHWORKFLOWSTATE_NAME_BATCHWORKFLOWID |
NAME, BATCHWORKFLOWID |
yes |
|
|
Triggers
Referenced by