|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.module.drools.Drools
public class Drools
Field Summary | |
---|---|
protected static Logger |
logger
|
Constructor Summary | |
---|---|
Drools()
|
Method Summary | |
---|---|
Object |
assertEvent(Rules rules,
Object event,
String entryPoint)
Add an event to the event stream. |
Object |
assertFact(Rules rules,
Object fact)
Assert a fact in the knowledge base. |
Object |
createSession(Rules rules)
Create a provider-specific session for interacting with the Rules Engine. |
void |
disposeSession(Object sessionData)
Dispose of a provider-specific session if necessary. |
String |
getName()
Gets the name of the object |
void |
retractFact(Rules rules,
Object fact)
Retract a fact from the knowledge base. |
void |
setMessageService(MessageService messageService)
Inject a callback so that the Rules Engine may generate messages within Mule. |
void |
setName(String name)
Sets the name of the object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger logger
Constructor Detail |
---|
public Drools()
Method Detail |
---|
public Object createSession(Rules rules) throws Exception
RulesEngine
createSession
in interface RulesEngine
Exception
public void disposeSession(Object sessionData) throws Exception
RulesEngine
disposeSession
in interface RulesEngine
sessionData
- - an initialized rules session
Exception
public Object assertFact(Rules rules, Object fact) throws Exception
RulesEngine
assertFact
in interface RulesEngine
fact
- to assert
Exception
public void retractFact(Rules rules, Object fact) throws Exception
RulesEngine
retractFact
in interface RulesEngine
fact
- to retract
Exception
public Object assertEvent(Rules rules, Object event, String entryPoint) throws Exception
RulesEngine
assertEvent
in interface RulesEngine
entryPoint
- for the event stream
Exception
public void setMessageService(MessageService messageService)
RulesEngine
setMessageService
in interface RulesEngine
messageService
- An interface within Mule which the rules may call to generate Mule messages.public void setName(String name)
NameableObject
setName
in interface NameableObject
name
- the name of the objectpublic String getName()
NamedObject
getName
in interface NamedObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |