webMethods

webMethods

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.  excluding special characters-Flow Service

    Posted Wed October 18, 2006 05:48 PM

    Hi Friends,

    Is it possible to write the below condition in Flow service. or I have to go for java service.

    Condition:
    Please remove any of the following characters from BIG02:
    “.”, “-”, “_”, “/”, ""
    If first character is zero “0”, remove it as well


    Regards,
    Naveen


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


  • 2.  RE: excluding special characters-Flow Service

    Posted Wed October 18, 2006 06:19 PM

    You can do it in a flow service…use RegularExpressions conditions and replace service to remove those chars in the BIG02…or else use seperate Branch operation evaluatelabels=true on BIG02 with those listed chars.If you see too many branches in the flow then go with JS.

    Please see ISDevelopersuserguide for regular expressions syntax information or do a google search for all the syntax.

    HTH,
    RMG


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


  • 3.  RE: excluding special characters-Flow Service

    Posted Wed October 18, 2006 06:53 PM

    Hi RMG,

    I tried the same thing by using Regular Expressions, but not able to achieve.
    And and i also tried with the replace…but while we have replace with some character or atleast space…
    I am not able to achieve it.

    Thanks
    Naveen


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


  • 4.  RE: excluding special characters-Flow Service

    Posted Wed October 18, 2006 09:15 PM

    Hi Naveen,

    I think you should be able to do it with regular expressions. please post the regular expression you are using so that any body can correct it.
    What is the problem with replace?Give the replaceString varibale as blank, i mean do not map it to any varible and the ouput string will not contain the search string. The “replaceString” input is not a mandatory input and so you can leave it as blank.

    Rgds,
    Pradeep


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


  • 5.  RE: excluding special characters-Flow Service

    Posted Wed October 18, 2006 09:21 PM

    Keep in mind that some of the chars you want to remove have special meaning in regular expressions. You need to escape them.


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


  • 6.  RE: excluding special characters-Flow Service

    Posted Sun October 22, 2006 02:45 AM

    Thanks for suggestion , i will try and come back with results.

    thanks,
    Naveen


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