This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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

Parents
  • 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

Reply
  • 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

Children
No Data