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

finding occurrence nodes by their name

  • 1.  finding occurrence nodes by their name

    Posted Tue February 19, 2002 11:05 AM

    X-Application Version: 3.1.1
    Tamino Version : 3.1.1
    Platform : NT, Win2k, Solaris, …
    WebContainer : Tomcat 3.3
    JDK Version : 1.3.1

    Hi,
    I am looking for a way to find occurrence nodes by their name instead of their position in the sequence.
    For example, if I encounter the following sequence
    , I would like to use XApplication to return the correct occurrence node based on its name… let’s say “A”, not by the X-Query statement “xapp:occ(index)”.
    Thanks in advance,
    Karsten


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: finding occurrence nodes by their name

    Posted Tue February 19, 2002 12:32 PM

    Hello,

    a BusinessNode has a method
    getDescendantByContent

    It returns a list of possible occurrence, choice or sequence nodes, which are responsible for the maintenance of a certain content. For example,

    the method returns two occurrences node for the content ?A?, if you invoke it for the BusinessNode X.

    Remark. This method works only for the content model of one element definition. For example,

    it returns an empty list for content ?A?, if you invoke it for BusinessNode Y.

    If you are looking for an anonymous sequence / choice you have to list all elements of the sequence / choice. For example,

    invoke the method with argument ?A B? to get the occurrence node of the (A,B)-list.


    Bye, Christian.


    #Tamino
    #API-Management
    #webMethods