Search in sources :

Example 1 with AfterRuleAddedEventImpl

use of org.drools.core.event.knowlegebase.impl.AfterRuleAddedEventImpl in project drools by kiegroup.

the class KieBaseEventSupport method fireAfterRuleAdded.

public void fireAfterRuleAdded(final RuleImpl rule) {
    if (hasListeners()) {
        AfterRuleAddedEvent event = new AfterRuleAddedEventImpl(this.kBase, rule);
        notifyAllListeners(event, (l, e) -> l.afterRuleAdded(e));
    }
}
Also used : AfterRuleAddedEvent(org.kie.api.event.kiebase.AfterRuleAddedEvent) AfterRuleAddedEventImpl(org.drools.core.event.knowlegebase.impl.AfterRuleAddedEventImpl)

Aggregations

AfterRuleAddedEventImpl (org.drools.core.event.knowlegebase.impl.AfterRuleAddedEventImpl)1 AfterRuleAddedEvent (org.kie.api.event.kiebase.AfterRuleAddedEvent)1