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

Field constraint pattern regexp

  • 1.  Field constraint pattern regexp

    Posted Tue June 15, 2004 12:35 AM

    Need help specifying a regular expression in the pattern area for a field constraint for a field which should not contain the following substring/value: ‘Select a Location’

    I tried
    ^(Select a Location)
    !(Select a Location)
    (?!Select a Location)

    Nothing seems to work.
    Any help appreciated
    Thanks
    JK


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


  • 2.  RE: Field constraint pattern regexp

    Posted Wed June 16, 2004 05:13 AM

    For the pattern area, you need to specify xmlschema regex, which you can find it here: [url=“XML Schema Part 0: Primer Second Edition”]XML Schema Part 0: Primer Second Edition
    The expression you are looking for is:
    .[^(Select a Location)].
    However, for some reason, webMethods fail to support scoping an exception condition. The above expression which should work in xmlschema doesn’t work in webMethods’ Validate Input feature. The result of above expression became rather stupid as “Select”, “a”, and “Location” been treat as seperated exception condition instead of a whole “Select a Location”.
    If anyone else find a way to do this, please do contribute, thanks.
    By the way, JK do u know u can just use combination of Switch and Exit in your flow to achieve the same thing? for the condition in the Label just fill in
    /[^(Select a Location)*]/
    cheers


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