Search in sources :

Example 1 with ConcurrentNodeMemories

use of org.drools.core.common.ConcurrentNodeMemories in project drools by kiegroup.

the class StatefulKnowledgeSessionImpl method bindRuleBase.

protected void bindRuleBase(InternalKnowledgeBase kBase, InternalAgenda agenda, boolean initInitFactHandle) {
    this.kBase = kBase;
    this.nodeMemories = new ConcurrentNodeMemories(kBase, DEFAULT_RULE_UNIT);
    this.pctxFactory = kBase.getConfiguration().getComponentFactory().getPropagationContextFactory();
    if (agenda == null) {
        this.agenda = kBase.getConfiguration().getComponentFactory().getAgendaFactory().createAgenda(kBase);
    } else {
        this.agenda = agenda;
    }
    this.agenda.setWorkingMemory(this);
    RuleBaseConfiguration conf = kBase.getConfiguration();
    this.sequential = conf.isSequential();
    initDefaultEntryPoint();
    updateEntryPointsCache();
    if (initInitFactHandle) {
        this.initialFactHandle = initInitialFact(kBase, null);
    }
}
Also used : RuleBaseConfiguration(org.drools.core.RuleBaseConfiguration) ConcurrentNodeMemories(org.drools.core.common.ConcurrentNodeMemories)

Aggregations

RuleBaseConfiguration (org.drools.core.RuleBaseConfiguration)1 ConcurrentNodeMemories (org.drools.core.common.ConcurrentNodeMemories)1