cancel
Showing results for 
Search instead for 
Did you mean: 

get list of rules

vinkk
Champ in-the-making
Champ in-the-making
Hi,

Iam trying to get list of rules under a perticular node. i use this script,

List<Rule> lists = ruleService.getRules(nodeRef);   for (Iterator<Rule> rule = lists.iterator();rule.hasNext(); )      {      Rule currentRule = rule.next();                                System.out.println("current rule" + currentRule.getTitle());      System.out.println("current rule" + currentRule.getDescription());                                System.out.println("rule id" + currentRule.getNodeRef().getId());                   }      ‍‍‍‍‍‍‍‍‍‍‍‍

here Title and description always null, but this "currentRule.getNodeRef().getId()" display the value correctly.

can any please help me how to get the title and description of the rule ?

thanks
vinkk
1 REPLY 1

vinkk
Champ in-the-making
Champ in-the-making
is it a bug, because i get all the values except title and description, i tried from the the node,
i get all the values correctly.including title and description.

please help

vin k k