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
  • 1.  Developer--->:BRANCH Condition

    Posted Fri April 21, 2006 11:06 AM

    Hi,
    Please refer “DeveloperUserGuide.pdf” Page no 433

    Operator Syntax Description
    = a = b Equal to.
    This example… Evaluates to true if…

    customerID = “webMethods”
    The value of the customerId variable is “webMethods.”

    Operator Syntax Description
    == a == b Equal to.

    This example… Evaluates to true if…
    sku == “WM001” The value of the sku variable is
    “WM001.”"

    Both are Same, or can anybody tell what is the reason for keeping both operators ? if they serve same perpose
    Or what is the difference between both operators ?

    NOTE: From Developer perspective i kow the difference.

    Regards,
    Puneet Saxena


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


  • 2.  RE: Developer--->:BRANCH Condition

    Posted Fri April 21, 2006 12:57 PM

    Hi Puneet

    The information in the guide seems confusing as both tell the same functionality.

    But the basic difference between the operators (=) assignment and (==) comparison.

    Cheers
    Jeevan


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


  • 3.  RE: Developer--->:BRANCH Condition

    Posted Fri April 21, 2006 02:57 PM

    Jeevan,

    That may be true in java but it is not true in Flow. The relational operators listed on the page that Puneet referenced are both used for comparison.

    As for why both are kept, I believe it is because broker still uses the “==” operator for comparison in filters.

    Mark


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


  • 4.  RE: Developer--->:BRANCH Condition

    Posted Fri April 21, 2006 08:56 PM

    Hi Mark

    Thanks , I really never tried it out , surely would !!

    Cheers
    Jeevan


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


  • 5.  RE: Developer--->:BRANCH Condition

    Posted Sat April 22, 2006 08:04 AM


  • 6.  RE: Developer--->:BRANCH Condition

    Posted Mon April 24, 2006 02:44 PM

    This is just my opinion, but I believe that the reason why Flow supports both operators is because webMethods markets the Developer as an easy-to-use tool that can be used by developers of any background (ex. Java, C, VisualBasic, COBOL, etc.) Therefore, by supporting different operators, each developer is able to code the services in a manner that makes them feel most comfortable.

    • Percio

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


  • 7.  RE: Developer--->:BRANCH Condition

    Posted Mon April 24, 2006 03:08 PM

    Percio,

    I would go for that theory if there was any other supporting evidence that WM was concerned about ease of use in Developer.

    Flow is simple compared to other languages, but adding more comparison operators makes it more complex not less so, IMHO.

    Any while a text window masquerading as a java source editor is simple I wouldn’t say it is more simple than a java editor with search, replace and a modest amount of syntax highlighting or, be still my heart, auto completion.

    Mark


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