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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  How to Handle a null value from a document

    Posted 04/20/06 05:27 PM

    Hi friends,

    I am in learning stage in webMethods. i have a problem . I had created a schema . And i am sending a file to schema .After parsing the file ,in the flow service i am converting it to values and looping over the records one by one .In the record one field is empty value . if that field is empty value,i should map that field to another value. so what i did is I used a branch condition on that field .and below that Branch ,i used map and labeled as null. and took another map and labelled as default.
    my idea is if the field is null ,it should go to the map labeled as null else it should go to the map labelled as default.

    but when i am tracing it ,the cursor is always going to default map,even though the field is null.

    so please tell me the solution for this.

    Thanks in advance

    Naren.


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


  • 2.  RE: How to Handle a null value from a document

    Posted 04/20/06 06:42 PM

    Is your label $null, not null? It should be $null.

    Keep in mind that $null is different from empty. It’s possible that the field value is really there but simply an empty string.

    Using a regular expression can be helpful in this case.

    BRANCH on ‘myVar’
    /[^ ]/: SEQUENCE – do something with a non-empty ‘myVar’
    $default: SEQUENCE – do something with ‘myVar’ when it is null, empty or contains only spaces

    The first label is a regular expression that is the equivalent of “execute this seqence when myVar has something other than just spaces in it.”

    HTH


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


  • 3.  RE: How to Handle a null value from a document

    Posted 04/21/06 01:41 PM

    Hi,
    Really thanks for your help . it helped me.

    thanks
    Naren


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