338339340341342343344
this.listener.beforeKnowledgeBaseUnlocked( new BeforeKnowledgeBaseUnlockedEventImpl( this.kbase ) ); } public void beforeRuleRemoved(BeforeRuleRemovedEvent event) { this.listener.beforeRuleRemoved( new BeforeRuleRemovedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
296297298299300301302
new KnowledgePackageImp( event.getPackage() ) ) ); } public void afterRuleAdded(AfterRuleAddedEvent event) { this.listener.afterRuleAdded( new AfterRuleAddedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
309310311312313314315
this.listener.afterKnowledgeBaseUnlocked( new AfterKnowledgeBaseUnlockedEventImpl( this.kbase ) ); } public void afterRuleRemoved(AfterRuleRemovedEvent event) { this.listener.afterRuleRemoved( new AfterRuleRemovedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
329330331332333334335
new KnowledgePackageImp( event.getPackage() ) ) ); } public void beforeRuleAdded(BeforeRuleAddedEvent event) { this.listener.beforeRuleAdded( new BeforeRuleAddedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
342343344345346347348
263264265266267268269
276277278279280281282
353637383940414243
public Collection<Rule> getRules() { org.drools.rule.Rule[] rules = pkg.getRules(); List<Rule> list = new ArrayList<Rule>( rules.length ); for ( org.drools.rule.Rule rule : rules ) { list.add( new RuleImpl( rule ) ); } return list; }