Persisting, retrieving, or deleting an item to or from a local message store

Various collaboration objects used in the Product Information Management for Retailers solution can initiate the storage, retrieval, or deletion of a business object to or from a message store.

Description

In each case, before persisting, retrieving, or deleting the business object, the collaboration object first converts it to a UCCnetGBO_storable business object. The UCCnetGBO_storable business object is a combination of one instance of an Catalogue Item Notification, together with the message header and routing information for the worklist message in which the item was contained. The outgoing port on each collaboration object can then be bound to a persistence mechanism. In the context of the Product Information Management for Retailers solution, this mechanism is a MessageStore collaboration object.

The MessageStore collaboration object receives the business object on its From port and, through a series of interactions with the IBM® WebSphere® Business Integration Data Handler for XML (which are detailed per command in MessageStore collaboration template), stores, retrieves, or deletes the message. When it retrieves a message, it returns it to the calling collaboration object. The key to this record in the message store is saved in the correlationID attribute of the UCCnetGBO_storable business object.

Generating data base keys

A key is guaranteed to be unique for each item and for each type of command. The key for the item store is saved in the Retail_Item business object internals.correlationID attribute. Do not modify the value of this attribute.

Entries in the item store and message store can possess identical keys since the stores are different tables within the database.

Related collaboration templates and business objects

See the following related collaboration templates for more information: See the following related business objects for more information:

Parent topic: Using identifier, message, and item stores