Managing Order Status with the Orders Receive Adapter
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
The Orders receive adapter includes the following two properties that you can use to help manage the status of orders that are exported using that adapter:
Status From
Status To
Both of these properties are strings, and valid values are comma-separated lists of one or more purchase order status values such as NewOrder, Submitted, Shipped, and so on. The Status From property may have zero (0) or more comma-separated values, and the Status To property must have either zero (0), one (1), or exactly the same number of values specified as the Status From property.
Note
All values that you include in the comma-separated lists for the Status From and Status To properties must be defined as valid values for the status of orders within the Orders System. For more information about the Orders System status values, including the default order status values, see How to Coordinate Updates to Orders.
The values in the Status From property, if any, are used as a filter for the export operation. In other words, if you set the Status From property to the value "NewOrder, InProcess"", then only orders with a status of "NewOrder" or "InProcess" will be included in export messages generated for the Orders receive adapter endpoint for which you configured these values.
The values in the Status To property, if any, are used to modify the status of the corresponding order within the Commerce Server Orders system according to the behaviors defined in the following table.
Status From property |
Status To property |
Behaviors and example |
---|---|---|
Zero (0) values |
Zero (0) values |
Behaviors:
Example:
|
One (1) or more values |
Zero (0) values |
Behaviors:
Example:
New and cancelled orders are exported, but no status values are changed within the Commerce Server Orders System. |
One (1) or more values |
One (1) value |
Behaviors:
Example:
New and cancelled orders are exported, and the status of all exported orders is changed to "Submitted" within the Commerce Server Orders System. |
One (1) or more values |
Exactly the same number of values |
Behaviors:
Example:
New and cancelled orders are exported, and with the Commerce Server Orders System, new orders are updated to a status of "Submitted" and cancelled orders are updated to a status of "InProcess". |
One (1) or more values |
Some number of values other than exactly the same number |
Behaviors:
Example:
|
Zero (0) values |
One (1) or more values |
Behaviors:
Example:
|
Important Note: |
---|
The Orders receive adapter does not ever change the status value of the one or more orders within the CommerceServerOrdersExport messages that it generates and delivers to BizTalk Server. These values are always exactly as they were within the Commerce Server Orders System before any changes made by the Orders receive adapter based on the values provided in the Status From and Status To properties. It is up to order processing code implemented within BizTalk Server, or order processing code implemented in another application beyond BizTalk Server, such as a line-of-business (LOB) application, to recognize and account for the fact that the order status within the Commerce Server Orders System and the order status in the CommerceServerOrdersExport message may be different. |
See Also
Other Resources
How to Configure the Orders Transport Properties for a Receive Endpoint