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.  Object type null check

    Posted Tue July 01, 2008 04:57 AM

    We are doing a queryXMLNode and grabbing a node from the input xml into the *Object data type. We want to call a service if this node exists. Hence we are doing a conditional call using a Branch(evaluate labels true) and a sequence with the label (%/rfgContract%!=null). The rfgContract is the variable name for the *Object type.

    This approach is giving us internal error when the node existed in the input xml with IS 7.1. The weird part is that the same flow works on 6.5.

    Can someone let me know what’s the fix for this problem?

    • Jayadev.

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


  • 2.  RE: Object type null check

    Posted Wed July 02, 2008 12:31 AM

    Are you sure it’s the absence of the object that is causing the error? I have an almost exact scenario running without a problem (IS 7.1.1). I know my reply isn’t of any help - but I thought a reassurance that your approach is right might prompt you to look else where for the cause of the error.

    ~Roh


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


  • 3.  RE: Object type null check

    Posted Wed July 02, 2008 05:21 AM

    Thank you for the reply.

    We just rephrased our condition from %/rfgContract%!=null to %/rfgContract% and its working. Looks like the not null check is implicit. If you are familiar with C programming, we do if(ptr). I guess this is similar to that.

    • Jayadev.

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


  • 4.  RE: Object type null check

    Posted Wed July 02, 2008 01:03 PM

    i think null should be checked with $null.
    (%/rfgContract%!=$null).
    i guess if you wud rephrase like this it wud work in 7.1.1. i know its late but hope this helps.


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


  • 5.  RE: Object type null check

    Posted Wed July 02, 2008 04:30 PM

    Pulaparty,

    Why don’t you put the variable name in the label after setting the Branch to True without the “%” sign. It will check both if the variable “exist” and not “null”. this → "% " is just an extra thing. Refer to developer’s guide under “Conditional Expressions” look for “Checking for Variable Existence”.

    HTH


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