public interface WorkingMemoryEntryPoint
extends org.kie.api.runtime.rule.EntryPoint
Modifier and Type | Method and Description |
---|---|
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) |
FactHandle |
insert(Object object)
Assert a fact.
|
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.
|
FactHandle insert(Object object) throws FactException
insert
in interface org.kie.api.runtime.rule.EntryPoint
object
- The fact object.FactException
- If a RuntimeException error occurs.FactHandle insert(Object object, boolean dynamic) throws FactException
PropertyChangeListeners
on the Object to automatically trigger update
calls
if dynamic
is true
.object
- The fact object.dynamic
- true if Drools should add JavaBean
PropertyChangeListeners
to the object.FactException
- If a RuntimeException error occurs.void retract(org.kie.api.runtime.rule.FactHandle handle) throws FactException
retract
in interface org.kie.api.runtime.rule.EntryPoint
handle
- The fact-handle associated with the fact to retract.FactException
- If a RuntimeException error occurs.void update(org.kie.api.runtime.rule.FactHandle handle, Object object) throws FactException
update
in interface org.kie.api.runtime.rule.EntryPoint
handle
- The fact-handle associated with the fact to modify.object
- The new value of the fact.FactException
- If a RuntimeException error occurs.WorkingMemoryEntryPoint getWorkingMemoryEntryPoint(String name)
void dispose()
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.