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.  DSP regular expressions (ifvar matches)

    Posted Thu September 03, 2015 01:49 PM

    Example

    VALUE = A OR B

    %ifvar VALUE matches (‘[AB]’)%

    % endifvar%

    Does not work

    Thank you


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


  • 2.  RE: DSP regular expressions (ifvar matches)

    Posted Thu September 03, 2015 02:13 PM

    Hi Gianni,

    here is the correct Syntax for %ifvar%:

    I have found this in the DSP Developers Guide.

    Regards,
    Holger


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


  • 3.  RE: DSP regular expressions (ifvar matches)

    Posted Thu September 03, 2015 02:44 PM

    Thanks Holger

    I read the manual but I don’t understand how the work option.

    Example:

    The value of the Variable can be ‘L’ or ‘P’

    %ifvar Variable equals (‘L’) equals (‘P’)%

    % endifvar%

    How do I check the double condition?

    Hi

    Gianni


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


  • 4.  RE: DSP regular expressions (ifvar matches)

    Posted Thu September 03, 2015 03:00 PM

    Hi Gianni,

    can you try the following:

    
    %ifvar Variable matches(‘L|P’)%
    Block of Code
    %end%

    Regards,
    Holger


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


  • 5.  RE: DSP regular expressions (ifvar matches)

    Posted Thu September 03, 2015 03:11 PM

    Hi Holger

    I tried but not working.

    %ifvar L_Notifica_NSVDOutput/results[0]/COD_STATO matches(‘L|P’)%
    Block of Code
    %end%

    While it works

    %ifvar L_Notifica_NSVDOutput/results[0]/COD_STATO matches(‘L’)%
    Block of Code
    %end%

    or

    %ifvar L_Notifica_NSVDOutput/results[0]/COD_STATO matches(‘P’)%
    Block of Code
    %end%

    Gianni


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


  • 6.  RE: DSP regular expressions (ifvar matches)

    Posted Thu September 17, 2015 05:30 AM

    Good question, never notice this before.
    Just checked the code in webMethods, it doesn’t really support regular expression.
    It just uses * and ? as kind of wild card.


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


  • 7.  RE: DSP regular expressions (ifvar matches)