Java Code Examples for org.kie.internal.runtime.StatefulKnowledgeSession#getKieBase()
The following examples show how to use
org.kie.internal.runtime.StatefulKnowledgeSession#getKieBase() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConcurrentNodeMemories.java From kogito-runtimes with Apache License 2.0 | 6 votes |
public void resetAllMemories(StatefulKnowledgeSession session) { InternalKnowledgeBase kBase = (InternalKnowledgeBase)session.getKieBase(); for (int i = 0; i < memories.length(); i++) { Memory memory = memories.get(i); if (memory != null) { memory.reset(); SegmentMemory smem = memory.getSegmentMemory(); if (smem != null) { smem.reset(kBase.getSegmentPrototype(smem)); if ( smem.isSegmentLinked() ) { smem.notifyRuleLinkSegment((InternalWorkingMemory)session); } } } } }
Example 2
Source File: PhreakActivationIterator.java From kogito-runtimes with Apache License 2.0 | 4 votes |
public static PhreakActivationIterator iterator(StatefulKnowledgeSession ksession) { return new PhreakActivationIterator( ((WorkingMemoryEntryPoint) ksession).getInternalWorkingMemory(), ksession.getKieBase() ); }