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() ) ) ); }
239240241242243244245
new KnowledgePackageImp( event.getPackage() ) ) ); } public void afterRuleAdded(AfterRuleAddedEvent event) { this.listener.afterRuleAdded( new AfterRuleAddedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
252253254255256257258
this.listener.afterKnowledgeBaseUnlocked( new AfterKnowledgeBaseUnlockedEventImpl( this.kbase ) ); } public void afterRuleRemoved(AfterRuleRemovedEvent event) { this.listener.afterRuleRemoved( new AfterRuleRemovedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
272273274275276277278
new KnowledgePackageImp( event.getPackage() ) ) ); } public void beforeRuleAdded(BeforeRuleAddedEvent event) { this.listener.beforeRuleAdded( new BeforeRuleAddedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
285286287288289290291
this.listener.beforeKnowledgeBaseUnlocked( new BeforeKnowledgeBaseUnlockedEventImpl( this.kbase ) ); } public void beforeRuleRemoved(BeforeRuleRemovedEvent event) { this.listener.beforeRuleRemoved( new BeforeRuleRemovedEventImpl( this.kbase, new RuleImpl( event.getRule() ) ) ); }
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; }
297298299300301302303