331332333334335336337
new KnowledgePackageImp( event.getPackage() ) ) ); } public void beforeRuleAdded(BeforeRuleAddedEvent event) { this.listener.beforeRuleAdded( new BeforeRuleAddedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
344345346347348349350
this.listener.beforeKnowledgeBaseUnlocked( new BeforeKnowledgeBaseUnlockedEventImpl( this.kbase ) ); } public void beforeRuleRemoved(BeforeRuleRemovedEvent event) { this.listener.beforeRuleRemoved( new BeforeRuleRemovedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
287288289290291292293
new KnowledgePackageImp( event.getPackage() ) ) ); } public void afterRuleAdded(AfterRuleAddedEvent event) { this.listener.afterRuleAdded( new AfterRuleAddedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
300301302303304305306
this.listener.afterKnowledgeBaseUnlocked( new AfterKnowledgeBaseUnlockedEventImpl( this.kbase ) ); } public void afterRuleRemoved(AfterRuleRemovedEvent event) { this.listener.afterRuleRemoved( new AfterRuleRemovedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
320321322323324325326
333334335336337338339
515253545556575859
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; }
292293294295296297298
305306307308309310311
325326327328329330331