Esempio n. 1
0
 public void engines(String[] args) {
   context.println("Engines");
   context.println("----------------");
   for (RuleEngine engine : registry.getEngines()) {
     context.println(
         engine.getName() + " (" + engine.getRules().size() + "): " + engine.getDescription());
   }
 }
Esempio n. 2
0
  public void rules(String[] args) {
    context.println("Rules");
    context.println("-----------------");

    for (RuleEngine engine : registry.getEngines()) {
      Collection<Rule> rules = engine.getRules();
      context.println("engine [" + engine.getName() + "] (" + rules.size() + ")");

      for (Rule rule : rules) {
        context.println("\t" + rule.toString());
      }
    }
  }