HCL Commerce Enterprise

Contract states

A contract passes various states from the time it is created until the time it is deleted. In most cases, the change of state is triggered by actions you take. Some state changes occur automatically.

In the following diagram, the actions that cause the state changes are shown on the lines that connect the contract states. Lines that are not labeled represent state changes that occur automatically. This diagram shows the possible states of one contract.

HCL Commerce contract states. Details of the states are provided below the image.

The following states are shown in the diagram:

Initial
This state represents the starting point of the contract lifecycle.
Draft
A draft contract is a newly created contract; a contract that was imported from an external source as a draft contract; or a contract that was created by duplicating an existing contract. (Duplicating an existing contract is not shown in the diagram). A contract in draft state is incomplete and not ready to submit for approval. The sales manager or account representative decides when a draft contract is ready to submit for approval.
Pending (approval)
A contract in the pending state is a draft contract that is complete and was submitted for approval. The sales manager or account representative decides when a draft contract is ready to submit for approval. The designated approvers for the contract must review the contract. Products cannot be purchased under a contract in this state.
Approved
If the designated approvers for the contract decide a contract is complete and acceptable, they can move the contract into the approved state. Approved contracts are automatically deployed.
Rejected
If the designated approver for a store decides a contract is not complete or is unacceptable, they can move the contract into the rejected state. A contract in the rejected state can be changed and resubmitted for approval, canceled, or marked for deletion.
Deployment in progress
An approved contract that is publishing to the server. Purchases cannot be made against the contract. In XML files and the HCL Commerce database tables, this state appears as DeploymentInProgress.
Active
An active contract is one that was deployed successfully and purchases can be made against the contract. If the expiry date for a contract is passed, the contract exists in the active state until it is canceled.
Deployment failed
If a contract cannot be published to the server, the contract is set to the deployment failed state. In XML files and the HCL Commerce database tables, this state appears as DeploymentFailed.
Closed
An active, suspended, or approved contract goes to the closed state automatically when a new version of the contract is approved. Creating a version of a contract creates a copy of the contract and place the copy of the contract in the draft state.
Suspended
When a contract is suspended, purchases cannot be made against that contract. The contract cannot be changed, but it can be resumed making the contract active again.
Canceled
A canceled contract is a contract that is no longer in use, but is left in the database for reference.
Mark for delete
A contract that is marked for delete cannot be accessed by using HCL Commerce. In XML files and the HCL Commerce database tables, this state appears as MarkForDelete.