1 2 3 4 Previous Next 52 Replies Latest reply on Feb 14, 2019 8:08 AM by Guo Wei Ma Go to original post
      • 45. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)
        Mohammad Rehman

        Great Job!

        Yudi Maryanto thanks for Filter API, I have tested it with  AR 9.1 and It is working as expected. I do have couple of questions.

        1) Is it possible to use regexpgroup plugin to parse input for multiple fields at the same time?

        2) Is there a size limit for input field? (Note:- I have successfully tested around 5000 char)

        • 46. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)
          Yudi Maryanto

          Hi Mohammad Rehman

           

          1. No, you can only use one ARS field as an input for each Set Field action

          2. Theoretically it can take string input as long as Java String class allowed (around 2 billion characters). But of course some technical limitation applied. E.g.  Max number of characters ARS field or database column can take, performance degradation as the string grows excessively larger, etc. I personnally never test this.

          1 of 1 people found this helpful
          • 47. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)
            Mohammad Rehman

            Hi Yudi Maryanto,

             

            I have one question regarding Plugins, If Input field value is null then it throws error. Why can't return null back? Like In my case I have to parse throw message for multiple tags but if some tags are missing, it throws errors.

             

            Thanks

            Mohammad

            • 48. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)
              Yudi Maryanto

              Hi Mohammad Rehman,

               

              Currently, that behavior is "by design" (sure, technically it can be modified to return null instead of throwing error). You can use several workarounds for this, for example

              1. Check for null value in the "Run If" qualification of the filter/active link

              2. Use error handler filter to suppress the thrown error

              1 of 1 people found this helpful
              • 49. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)
                Mohammad Rehman

                Hi Yudi Maryanto,

                Thanks for the quick response. I understand the Run If qualification, in my scenario I am using multiple plugins.

                I need to parse first the tags from message body and then split the value. I am using one filter and two actions to reduce the number of filters but it seems I have to create one filter for each plugin call.

                i.e   #Tag:value#

                1) parse  first calling MII.ARF.REGEXEXTRACTGROUP to extract the message body multiple tags.

                    Result = #TAG:Value

                2) parse second call MII.ARF.REGEXSPLIT to split  tag and value from the result of 1 call.

                   Result = Value

                 

                If 1 call does not return the tag second call returns error.

                ****I can split the filter actions into each filter but wanted to check with you first whether it is as designed or something is wrong.

                • 50. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)

                  HI Mohammad,

                   

                  Can you please let me know if the below setting is right in plugin config file

                  <plugin>

                  <name>MII.ARF.REGEXVALID</name>

                  <classname>id.co.mii.filterplugin.RegexFilterPlugin</classname>

                  <pathelement type="location">C:/Remedy/ARSystem/pluginsvr/regexfilterapi-4.0.jar</pathelement>

                  </plugin>

                  or should that be

                  <plugin>

                  <name>MII.ARF.REGEXVALID</name>

                  <classname>id.co.mii.filterplugin.RegexFilterPlugin</classname>

                  <filename>C:\Remedy\ARSystem\pluginsvr\regexfilterapi-4.0.jar</filename>

                  <pathelement type="location">C:/Remedy/ARSystem/pluginsvr/regexfilterapi-4.0.jar</pathelement>

                  </plugin>

                  and in ar.cfg file

                  Server-Plugin-Alias: MII.ARF.REGEXVALID MII.ARF.REGEXVALID FQDM:9999

                  Server-Plugin-Alias: MII.ARF.REGEXSPLIT MII.ARF.REGEXSPLIT FQDM:9999

                  Server-Plugin-Alias: MII.ARF.REGEXEXTRACT MII.ARF.REGEXEXTRACT FQDM:9999

                  Server-Plugin-Alias: MII.ARF.REGEXEXTRACTGROUP MII.ARF.REGEXEXTRACTGROUP FQDM:9999

                  Server-Plugin-Alias: MII.ARF.REGEXREPLACE MII.ARF.REGEXREPLACE FQDM:9999

                   

                  Also the slash differs from OOB plugins that exists in the config file.. Not sure whether it could be an issue.

                   

                  We upgraded from 8.1 to 9.1. Looks like its not working in 9.1 for us? Is there any other additional configuration required to make this working apart from this?

                  • 51. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)
                    Mohammad Rehman

                    Following line seems extra which should not be there.

                    <filename>C:\Remedy\ARSystem\pluginsvr\regexfilterapi-4.0.jar</filename>

                    You have already defining the file location in next line where you have copied regexfilterapi-4.0.jar file.

                    <pathelement type="location">C:/Remedy/ARSystem/pluginsvr/regexfilterapi-4.0.jar</pathelement>

                     

                    Note: I am sure you have defined all the plugin in  pluginsvr_config.xml file which you have in ar.cfg.

                    ar.cfg looks good to me.

                    • 52. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)
                      Guo Wei Ma

                      Works great in 1808, thank you

                      1 of 1 people found this helpful
                      1 2 3 4 Previous Next