Update verb

Process logic for the Update verb.

Flow

  1. An IdentifierStore collaboration object is triggered by the receipt of a UCCnetGBO_identifier business object. The triggering business object passed into the IdentifierStore collaboration object must contain values for all the fields that make up the ObjectKey attribute of the stored SerialIdentifier application specific business object, as defined by the value of the OBJECT_KEY configuration property in the IdentifierStore collaboration object.
    Note: The entire business object in the database will be replaced by this operation. Therefore, the calling collaboration object might want to first retrieve the business object from the database, modify any attributes which need to be updated, and then again invoke the IdentifierStore collaboration object with the modified business object and the Update verb.
  2. The IdentifierStore collaboration object copies the triggering UCCnetGBO_identifier business object into a high-level object called DataStoreUCCnetGBO_identifier. This object is passed into the IBM® WebSphere® Business Integration Data Handler for XML. By default, it contains the application specific information needed by the data handler. The data handler outputs a string, which contains an XML representation of the UCCnetGBO_identifier business object passed into the collaboration object.
  3. The IdentifierStore collaboration object builds an application specific business object called SerialIdentifier, which includes two attributes:
    • ObjectData, which is set equal to the XML output from the data handler.
    • ObjectKey, which is created from the key information in the UCCnetGBO_identifier business object and the value of the IdentifierStore collaboration object's OBJECT_KEY property. This attribute holds the unique key used to store the object in the database.
  4. The completed SerialIdentifier is sent to the To port of the IdentifierStore collaboration object, which is bound to a JDBCConnector. The JDBCConnector overwrites the existing SerialIdentifier in the database with the updated one. If the object does not already exist in the database, a ServiceCall exception is thrown and the Update operation fails.

Parent topic: Overall process logic