Comparing all of the list elements to an Active List
I'm trying to implement a variable that will use the output of the StringToList variable and will compare all the elements of the list to an ActiveLIst
I'll use the variable StringToList to get the output
Now I can use the variable GetSizeOfList to get the value of how many objects are in the array (list)
I have an activeLIst which contains a key value (UserMail) , for example
Now I'm interested to check which of the three emails are in the list for this I need to create a variable that checks all of the objects in the array
From the http://velocity.apache.org I can see that foreach loop is supported in velocity template however each of my attempts to create a velocity template variable with foreach gets a nullPointerException
Any ideas how to create this variable will be appreciated
Thanks in advance
Maybe not so elegnant solution...
To Execute Command action on the rule that passes the targetUserName to a script as a parameter, the script can then split the string at the"|", loop through the resulting list and reforward splited events as syslog, that should be queried again in a new Rule against Your e-mail active list....