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.


#TechXchangePresenter
 View Only
  • 1.  A sample filter

    Posted Fri December 03, 2004 06:40 PM

    I have a document that I would like to filter on (DocA). DocA contains a Doc Reference list to DocB, which contains string StringA…I want to filter on StringA in my trigger for only documents where StringA = “GO”

    What is the proper syntax to put in the trigger filter?

    %DocA/DocB/StringA%==“GO” <– Is this correct?

    I have tried every different format…frustrated. Any help would be gladly appreciated.


    #webMethods-Archive
    #If-it-doesn-t-fit-anywhere-else
    #webMethods


  • 2.  RE: A sample filter

    Posted Sat December 04, 2004 07:34 PM

    This works too,
    %DocA/DocB/StringA% == “GO” or else %DocA/DocB/StringA%= ‘GO’


    #webMethods
    #If-it-doesn-t-fit-anywhere-else
    #webMethods-Archive


  • 3.  RE: A sample filter

    Posted Mon December 06, 2004 03:56 PM

    Hello,
    I thought triggers were scoped to the top level document. That would mean all that was necessary was:
    %DocB/StringA% == “GO”
    However, true to the possibility, if Chris has DocA as an internal portion to the top level triggering document, then I would agree. Check back on this.


    #webMethods
    #If-it-doesn-t-fit-anywhere-else
    #webMethods-Archive


  • 4.  RE: A sample filter

    Posted Fri October 12, 2007 02:57 PM

    HI All,

    I have asituation to provide filter in the trigger for an incoming document which contains array structure. I put the filter like this, but it doesn’t work.

    %Doc/DocList/strg1% == “GOO”.

    Document structure of the publishable document is like

    Doc
    String1
    String2
    DocList
    strg1
    strg2

    Is there any way out to provide filter based on an array elemnt.
    Thanks,
    KK


    #If-it-doesn-t-fit-anywhere-else
    #webMethods-Archive
    #webMethods


  • 5.  RE: A sample filter

    Posted Fri October 12, 2007 03:48 PM

    If you want to filter only on first index where DocList loops then here it is…

    %Doc/DocList[0]/strg1% == “GOO”

    HTH,
    RMG


    #If-it-doesn-t-fit-anywhere-else
    #webMethods-Archive
    #webMethods


  • 6.  RE: A sample filter

    Posted Fri October 12, 2007 04:16 PM

    Hi RMG,

    Thanks for the quick response. But I like to search for any of the index. As the string i am looking for can occur at any of the intermediary index.

    Thanks,
    KK.


    #If-it-doesn-t-fit-anywhere-else
    #webMethods-Archive
    #webMethods


  • 7.  RE: A sample filter

    Posted Wed January 23, 2013 10:07 PM

    Hi RMG

    I too have a simiar requirement , I want to use a filter condition on one of the fields (say Field1) which is inside a document list ( say Doc1) of a canonical document ( say UDM 1) ,
    so the structure is :
    -UDM
    – Doc 1
    ----Field 1

    Is there any way to filter out the documents at the trigger level / broker level for all the values of Field1 ?


    #webMethods
    #If-it-doesn-t-fit-anywhere-else
    #webMethods-Archive