BATCHWORKFLOWSTATE (4.0SP20)

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

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BATCHWORKFLOWID

uniqueidentifier

false

FK to BATCHWORKFLOW

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

NAME

nvarchar(200)

false

''

ALLOWCOMMIT

bit

false

0

Indicates if this state in the workflow should allow the commit process to be executed.

ISINITIALSTATE

bit

false

0

Indicates if this state is the initial state in the workflow.

ALLOWEDIT

bit

false

1

Indicates if this state in the workflow should allow the batch to be editable.

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.

OVERDUEIN

tinyint

false

0

The number of days that the state will be overdue in.

ENFORCETOTALMATCHING

bit

false

0

Indicates if the batch is commited while in this state, should projected and actual total have to match.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BATCHWORKFLOWSTATE_DATEADDED

DATEADDED

False

False

True

IX_BATCHWORKFLOWSTATE_DATECHANGED

DATECHANGED

False

False

False

PK_BATCHWORKFLOWSTATE

ID

True

True

False

UIX_BATCHWORKFLOWSTATE_NAME_BATCHWORKFLOWID

NAME

BATCHWORKFLOWID

True

False

False

Triggers
Trigger Name Description

TR_BATCHWORKFLOWSTATE_AUDIT_UPDATE

TR_BATCHWORKFLOWSTATE_AUDIT_DELETE

Referenced by
Referenced by Field

BATCH

BATCHWORKFLOWSTATEID

BATCHWORKFLOWSTATUS

BATCHWORKFLOWSTATEID

BATCHWORKFLOWTASK

BATCHWORKFLOWSTATEID

BATCHWORKFLOWTASK

NEXTBATCHWORKFLOWSTATEID

SYSTEMROLEPERM_BATCHWORKFLOWSTATE

BATCHWORKFLOWSTATEID