The ReleaseToFulfillment controller command is invoked by the WebSphere Commerce Scheduler. For a given store, it gets the list of orders to release. For each of these orders, it checks to see if the payment is still valid. For orders with valid payments, it releases the orders to fulfillment and updates the database with this information.
For an Advanced Order that uses the TIECODE to mark grouped order items associated with the Ship Together feature, the ReleaseToFulfillment controller command invokes a task command that checks all orders that are in the NEW state. If the order items that have been defined to ship together are all ready to be shipped, the state is changed to RDY.
Environment variable name | Description |
---|---|
storeID | The store on which the command runs. |
Behavior
For the given store, get the list of orders to release. For each of these orders:
- Call CheckPaymentAcceptCmd to see if the payment is still valid.
- If the payment is still valid, release the order to fulfillment.
- Update the order status in the ORDERS table to R, and update the order-item status in the ORDERITEM table to R to indicate that the order item has been released.
- Advanced orders Update the order-item status in the ORDERITEMS table to R to indicate that the order item has been released while the major status in the ORDERS table remains PRC.
The recommended interval for this command is 600 seconds, and the recommended priority is 10.