|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RulesEngine
A generic interface for any Rules Engine. Theoretically, any Rules Engine can be "plugged into" Mule if it implements this interface.
MessageService| Method Summary | |
|---|---|
Object |
assertEvent(Rules ruleset,
Object event,
String entryPoint)
Add an event to the event stream. |
Object |
assertFact(Rules ruleset,
Object fact)
Assert a fact in the knowledge base. |
Object |
createSession(Rules ruleset)
Create a provider-specific session for interacting with the Rules Engine. |
void |
disposeSession(Object session)
Dispose of a provider-specific session if necessary. |
void |
retractFact(Rules ruleset,
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. |
| Methods inherited from interface org.mule.api.NameableObject |
|---|
setName |
| Methods inherited from interface org.mule.api.NamedObject |
|---|
getName |
| Method Detail |
|---|
void setMessageService(MessageService messageService)
messageService - An interface within Mule which the rules may call to generate Mule messages.
Object createSession(Rules ruleset)
throws Exception
ruleset -
Exception
void disposeSession(Object session)
throws Exception
session - - an initialized rules session
Exception
Object assertFact(Rules ruleset,
Object fact)
throws Exception
ruleset - fact - to assert
Exception
void retractFact(Rules ruleset,
Object fact)
throws Exception
ruleset - fact - to retract
Exception
Object assertEvent(Rules ruleset,
Object event,
String entryPoint)
throws Exception
ruleset - event - entryPoint - for the event stream
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||