IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Unique Constraint on Tamino Document

  • 1.  Unique Constraint on Tamino Document

    Posted Tue June 04, 2002 12:06 AM

    I have a document with a series of elements. One of the element is employee-number and I need Tamino to enforce the uniqueness of this element. Is there a way for Tamino to enforce unique constraint at the document level such that Tamino will return an error if two inserts result in duplicate employee-number.


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: Unique Constraint on Tamino Document

    Posted Tue June 04, 2002 06:36 PM

    Hello Min Chai,

    at the moment I don’t think it is possible to enforce that the employee-number element be unique.
    Please see this topic: Unique attribute values

    At the moment, unique-ness is provided on the ino:docname attribute. Perhaps you could code a solution in which the value of employee-number is copied into ino:docname before inserting the document? If there is already a document with that ino:docname/employee-number, you will get an error from the Tamino Server on insert.

    I hope that helps,
    Trevor.


    #API-Management
    #Tamino
    #webMethods