-
45. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)
Mohammad RehmanJul 12, 2016 7:00 PM (in response to Yudi Maryanto)
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 Jul 13, 2016 1:47 AM (in response to Mohammad Rehman)1 of 1 people found this helpful1. 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.
-
47. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)
Mohammad RehmanJul 25, 2016 6:42 PM (in response to Yudi Maryanto)
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 Jul 25, 2016 7:10 PM (in response to Mohammad Rehman)1 of 1 people found this helpfulHi 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
-
49. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)
Mohammad RehmanJul 26, 2016 1:11 AM (in response to Yudi Maryanto)
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)
Pradeep K Nov 25, 2016 1:19 AM (in response to Mohammad Rehman)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 RehmanNov 28, 2016 3:45 PM (in response to Pradeep K)
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 Feb 14, 2019 8:08 AM (in response to Yudi Maryanto)1 of 1 people found this helpfulWorks great in 1808, thank you
-
53. Re: Regular Expression (Regex) AR API Filter Plug-in (v4.1)
Jesus Diaz-Ropero Simon Oct 25, 2019 2:36 PM (in response to Yudi Maryanto)Hello Yudai - you've done a great job !
BMC People SHOULD install this plugin in the Remedy BOX, it's really useful.
I've just test it in ARS 18.05 and it works.
And the realm that you share your precious code with everyone, tell us you are a person preocupated for our problems, and very honest.
BMC needs more people like you, that understands the users & administrator needs.
Thank you.
More Like This
Incoming Links
- Re: Strip domain value from FQDN
- Re: Extracting text from a string
- Re: What will be the workflow to extract numbers from Character field.(Using functions in Set Fields.)
- Re: IP Address Patern - Developer Studio
- Re: Regular Expression (Regex) AR API Filter Plug-in (v4.0)
- Re: Creating Tickets Via Outlook on a Custom Helpdesk Application