Drools :: Core 6.1.0.Final

org.drools.core
Interface WorkingMemoryEntryPoint

All Superinterfaces:
org.kie.api.runtime.rule.EntryPoint
All Known Subinterfaces:
InternalWorkingMemory, InternalWorkingMemoryActions, ReteooWorkingMemoryInterface, WorkingMemory
All Known Implementing Classes:
NamedEntryPoint, StatefulKnowledgeSessionImpl

public interface WorkingMemoryEntryPoint
extends org.kie.api.runtime.rule.EntryPoint

An interface for instances that allow handling of entry-point-scoped facts


Method Summary
 void dispose()
          Internal method called by the engine when the session is being disposed, so that the entry point can proceed with the necessary clean ups.
 WorkingMemoryEntryPoint getWorkingMemoryEntryPoint(String name)
           
 org.kie.api.runtime.rule.FactHandle insert(Object object)
          Assert a fact.
 org.kie.api.runtime.rule.FactHandle insert(Object object, boolean dynamic)
          Insert a fact registering JavaBean PropertyChangeListeners on the Object to automatically trigger update calls if dynamic is true.
 void retract(org.kie.api.runtime.rule.FactHandle handle)
          Retract a fact.
 void update(org.kie.api.runtime.rule.FactHandle handle, Object object)
          Inform the WorkingMemory that a Fact has been modified and that it should now update the network.
 
Methods inherited from interface org.kie.api.runtime.rule.EntryPoint
delete, getEntryPointId, getFactCount, getFactHandle, getFactHandles, getFactHandles, getObject, getObjects, getObjects
 

Method Detail

insert

org.kie.api.runtime.rule.FactHandle insert(Object object)
Assert a fact.

Specified by:
insert in interface org.kie.api.runtime.rule.EntryPoint
Parameters:
object - The fact object.
Returns:
The new fact-handle associated with the object.

insert

org.kie.api.runtime.rule.FactHandle insert(Object object,
                                           boolean dynamic)
Insert a fact registering JavaBean PropertyChangeListeners on the Object to automatically trigger update calls if dynamic is true.

Parameters:
object - The fact object.
dynamic - true if Drools should add JavaBean PropertyChangeListeners to the object.
Returns:
The new fact-handle associated with the object.

retract

void retract(org.kie.api.runtime.rule.FactHandle handle)
Retract a fact.

Specified by:
retract in interface org.kie.api.runtime.rule.EntryPoint
Parameters:
handle - The fact-handle associated with the fact to retract.

update

void update(org.kie.api.runtime.rule.FactHandle handle,
            Object object)
Inform the WorkingMemory that a Fact has been modified and that it should now update the network.

Specified by:
update in interface org.kie.api.runtime.rule.EntryPoint
Parameters:
handle - The fact-handle associated with the fact to modify.
object - The new value of the fact.

getWorkingMemoryEntryPoint

WorkingMemoryEntryPoint getWorkingMemoryEntryPoint(String name)

dispose

void dispose()
Internal method called by the engine when the session is being disposed, so that the entry point can proceed with the necessary clean ups.


Drools :: Core 6.1.0.Final

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.