299300301302303304305
new KnowledgePackageImp(event.getPackage()))); } public void afterRuleAdded(AfterRuleAddedEvent event) { this.listener.afterRuleAdded( new AfterRuleAddedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
312313314315316317318
this.listener.afterKieBaseUnlocked(new AfterKnowledgeBaseUnlockedEventImpl(this.kbase)); } public void afterRuleRemoved(AfterRuleRemovedEvent event) { this.listener.afterRuleRemoved( new AfterRuleRemovedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
332333334335336337338
new KnowledgePackageImp(event.getPackage()))); } public void beforeRuleAdded(BeforeRuleAddedEvent event) { this.listener.beforeRuleAdded( new BeforeRuleAddedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
345346347348349350351
this.listener.beforeKieBaseUnlocked(new BeforeKnowledgeBaseUnlockedEventImpl(this.kbase)); } public void beforeRuleRemoved(BeforeRuleRemovedEvent event) { this.listener.beforeRuleRemoved( new BeforeRuleRemovedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
343536373839404142
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; }
234235236237238239240
new KnowledgePackageImp( event.getPackage() ) ) ); } public void afterRuleAdded(AfterRuleAddedEvent event) { this.listener.afterRuleAdded( new AfterRuleAddedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
247248249250251252253
this.listener.afterKnowledgeBaseUnlocked( new AfterKnowledgeBaseUnlockedEventImpl( this.kbase ) ); } public void afterRuleRemoved(AfterRuleRemovedEvent event) { this.listener.afterRuleRemoved( new AfterRuleRemovedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
267268269270271272273
new KnowledgePackageImp( event.getPackage() ) ) ); } public void beforeRuleAdded(BeforeRuleAddedEvent event) { this.listener.beforeRuleAdded( new BeforeRuleAddedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
280281282283284285286
this.listener.beforeKnowledgeBaseUnlocked( new BeforeKnowledgeBaseUnlockedEventImpl( this.kbase ) ); } public void beforeRuleRemoved(BeforeRuleRemovedEvent event) { this.listener.beforeRuleRemoved( new BeforeRuleRemovedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
321322323324325326327