public interface RulesEngine
extends org.mule.api.NameableObject
MessageService| Modifier and Type | Method and Description |
|---|---|
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.
|
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 - Exceptionvoid disposeSession(Object session) throws Exception
session - - an initialized rules sessionExceptionObject assertFact(Rules ruleset, Object fact) throws Exception
ruleset - fact - to assertExceptionvoid retractFact(Rules ruleset, Object fact) throws Exception
ruleset - fact - to retractExceptionObject assertEvent(Rules ruleset, Object event, String entryPoint) throws Exception
ruleset - event - entryPoint - for the event streamExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.