How can extract the rule name and the rule score results using a groovy script
How can extract the rule name and the rule score results using a groovy script
Hello Georgios,
to get the rule names, you can use this:
---
ruleSvc = server.get("RuleService");
rules = ruleSvc.getAllRules();
msg = new StringBuilder();
for (rule in rules) {
msg.append(rule.getName() +"\n");
}
return msg;
---
I do not know exactly what you mean with score results.
Regards
Nicola
Hello Georgios,
to get the rule names, you can use this:
---
ruleSvc = server.get("RuleService");
rules = ruleSvc.getAllRules();
msg = new StringBuilder();
for (rule in rules) {
msg.append(rule.getName() +"\n");
}
return msg;
---
I do not know exactly what you mean with score results.
Regards
Nicola