I would like to set rule attributes in the created rule. I see the class 'org.drools.rule.Rule' has setter methods to set these properties, but how can I use it to set the values in the existing rule?
Sample:
Collection<KnowledgePackage> pkgs = kbuilder.getKnowledgePackages();
Iterator<KnowledgePackage> kps = pkgs.iterator().next();
org.drools.definition.rule.Rule rule = kp.getRules().iterator().next();
org.drools.definition.rule.Rule class doesn't have methods to set attributes like the one in org.drools.rule.Rule.