| org.drools.spi.KnowledgeHelper
All known Subclasses: org.drools.base.SequentialKnowledgeHelper, org.drools.base.DefaultKnowledgeHelper,
KnowledgeHelper | public interface KnowledgeHelper extends Serializable(Code) | | KnowledgeHelper implementation types are injected into consequenses
instrumented at compile time and instances passed at runtime. It provides
convenience methods for users to interact with the WorkingMemory.
Of particular interest is the update method as it allows an object to
be modified without having to specify the facthandle, because they are not
passed to the consequence at runtime. To achieve this the implementation will
need to lookup the fact handle of the object form the WorkingMemory.
author: bob mcwhirter author: mark proctor |
insert | void insert(Object object) throws FactException(Code) | | Asserts an object, notice that it does not return the FactHandle
Parameters: object - -the object to be asserted throws: FactException - -Exceptions can be thrown by conditions which are wrapped andreturned as a FactException |
insert | void insert(Object object, boolean dynamic) throws FactException(Code) | | Asserts an object specifying that it implement the onPropertyChange
listener, notice that it does not return the FactHandle.
Parameters: object - -the object to be asserted Parameters: dynamic - -specifies the object implements onPropertyChangeListener throws: FactException - -Exceptions can be thrown by conditions which are wrapped andreturned as a FactException |
|
|