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

null check using regular expression

  • 1.  null check using regular expression

    Posted Tue January 11, 2011 09:18 AM

    Hi Frends

    Had a doubt regarding checking null.
    Is it so that checking for null while using appendToList, regular expression check on variable holds good but on docList there is a performance issue.
    Please guide

    Regards
    Mayank


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: null check using regular expression

    Posted Tue January 11, 2011 02:47 PM

    Hi
    can you try to use the “copy condition” parameter inthe fromItem property of appendToDocumentList . Specify the condition as per ur requirement on variable/document.if the condition is OKay then only that value will be mapped to toList.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 3.  RE: null check using regular expression

    Posted Tue January 11, 2011 06:59 PM

    In 4.x and 6.x versions I had observed that appendToDocumentList would slow dramatically when the size of the list approached about 1000 entries. More recent informal tests with 7.x showed no such performance issue.

    I would suggest running some tests in your environment to see if it is an issue or not.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: null check using regular expression

    Posted Wed January 12, 2011 05:36 AM

    Thanks Rob for the reply…
    Would surely work on that, but would like to know whether using regular expressions for null check on the docList creates performnce issue or not


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: null check using regular expression

    Posted Wed January 12, 2011 05:38 AM

    thanks fr the reply …
    Would try using the copy condition for the null check.
    Hope that will do


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 6.  RE: null check using regular expression

    Posted Wed January 12, 2011 06:55 AM

    There is still lot of overhead in the latest releases with services appendtoDocList… advised to use java services for the same operations if the document list is really heavy more than few thousand records.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 7.  RE: null check using regular expression

    Posted Wed January 12, 2011 08:00 AM

    Hi mayank,

    Once your issue get’s resolved. can you post the resolution


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 8.  RE: null check using regular expression

    Posted Wed January 12, 2011 09:14 AM

    thnks for the suggestion
    Would implement java services


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 9.  RE: null check using regular expression

    Posted Wed January 12, 2011 09:33 AM

    ya Jeevan would post after issue is resolved


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 10.  RE: null check using regular expression

    Posted Wed January 12, 2011 05:07 PM

    appendToDocList is a Java service. A doc list is simply an array of IData objects. You’re not going to be faster with your own Java service if you still use an array.

    And if you don’t use arrays, and instead use something like a hashmap or other collection classe, then you’ll need to adjust your services to convert that to a doc list when you’re done building it up (I’ve done this in the past and it’s fairly easy).

    Before writing your own services, test to see if appendToDocList will perform satisfactorily in your environment for your integration.

    I do not know if using a regex in the loop will have a significant impact on performance. Test it to find out. Intuitively it seems that it would be slower than other types of checks but, 1) it might not be, and; 2) the slow-down may not be enough to matter. Test first, then tune.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 11.  RE: null check using regular expression

    Posted Thu January 13, 2011 10:43 AM

    thanks Rob for your reply
    Will try implementing your suggestion


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services