The ATPToSalesOrder collaboration template is designed to be used when ATP checks are a dependency of the Sales Order creation and update process. ATPToSalesOrder subscribes to the generic Order business object to update product availability data in a sales order.
This section includes information on port bindings and required steps for setting up collaboration objects based on ATPToSalesOrder. For information on standard features, ports, and configuration properties for collaboration templates, see the Collaboration Development Guide. For general information on creating collaboration objects, see the System Implementation Guide.
Figure 1 illustrates the ATPToSalesOrder collaboration's ports, as they are displayed in System Manager.
Figure 1. ATPToSalesOrder collaboration's ports
Note: To prevent the collaboration object from using a port, bind that port to the Port connector. Binding the port indicates that the port is unused without causing the collaboration object to provide additional functionality.
Business object | Bound to | Function | Verbs used |
---|---|---|---|
Order. | The source (buyer's) application connector. | Receives the triggering business object. At the end of a synchronous call, this port also returns the triggering business object to the source application when the collaboration ends successfully. |
Create. Update. Delete. |
Business object | Bound to | Function | Verbs used |
---|---|---|---|
ATP. | The ATP collaboration. | This is the object being sent. | Retrieve. |
Business object | Bound to | Function | Verbs used |
---|---|---|---|
Order. | The SalesOrderProcessing collaboration. | This is the object being sent to the SalesOrderProcessing collaboration. |
Create. Update. Delete. |
Business object | Bound to | Function | Verbs used |
---|---|---|---|
Order. | The source (buyer's) application connector. | This is the object that is sent back to the source application once the ATP and SalesOrderProcessing collaborations have ended successfully and return control to the ATPToSalesOrder collaboration. |
Update |
This section illustrates the process logic for this collaboration template:
Figure 2 illustrates ATPToSalesOrder's process logic.
Figure 2. ATPToSalesOrder collaboration's process logic
This collaboration template uses the following standard collaboration business processes:
For information on these processes, see the Collaboration Development Guide.
Note: ATPToSalesOrder does not include a Retrieve scenario. The ATPToSalesOrder process logic includes the ATP Transaction subprocess which maps the generic Order object to the generic ATP object and sends it to the ATP collaboration. The ATP collaboration returns the response ATP business object to the ATPToSalesOrder collaboration where it is mapped back to an Order business object and sent to the SalesOrderProcessing collaboration. Mapping from the ATP business object to the Order business object occurs in the following two steps:
Note: Code has been added to the collaboration to enable mapping when the source and destination objects are of the same type. For example, an Order business object to another Order business object.
Figure 3 illustrates ATPToSalesOrder's transaction process logic.
Figure 3. ATPToSalesOrder collaboration's transaction process logic
InterChange Server Express can roll back a transaction when any step in a transactional collaboration fails. For example, when ATPToSalesOrder is a member of a collaboration-object group that participates in a transactional collaboration, its actions are one subtransactional step of a larger transaction. If any step in the collaboration-object group's business process fails, the transactional collaboration details how InterChange Server Express rolls back the processing of every collaboration in the group.
When an ATPToSalesOrder collaboration object is used independently of other collaboration objects or the collaboration object's From port is bound to a source application rather than to another collaboration, its process comprises a single transactional step. In such a situation, it is not necessary to perform rollback.
To cause a collaboration object or a collaboration-object group to perform rollback requires modification of the collaboration template. To understand transaction processing In the WebSphere Business Integration Server Express Plus system, see the System Implementation Guide. For information on adding transaction processing to the collaboration template, see the Collaboration Development Guide.
To extend the collaboration object to handle transaction processing, complete the following steps:
This section describes the standard properties and collaboration template-specific properties for this collaboration template:
This collaboration template uses the following standard configuration properties for collaboration templates:
For information on these configuration properties, see the Collaboration Development Guide.
In addition to its standard configuration properties, this collaboration template has the configuration properties described below.
Property name and explanation | Possible values | Default value |
---|---|---|
MAP_TO_ATP. This property is the name of the map that the collaboration will call to map the incoming Order business object to the ATP business object which will be sent to the ATP collaboration. |
The name of the map in the repository. | none. |
MAP_FROM_ATP. This property is the name of the map that the collaboration will call to map the ATP business object received from the ATP collaboration to the Order business object which will be sent to the SalesOrderProcessing collaboration. |
The name of the map in the repository. | none. |
RETURN_TO_SOURCE The value of this property determines whether or not the Order object synchronized with the destination application will be sent back to the source with the "update" verb. Since the Order object will contain ATP dates retrieved through the ATPToSalesOrder process, if synchronization of this information is relevant to the source application, then this property should be set to "true". |
true, false | none |
To view an explanation of the messages of this collaboration template, launch the Log Viewer and open the collaboration template's message file. To launch the Log Viewer and open the collaboration template's message file: