public interface RulesEngine extends 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.
|
setName
getName
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 sessionException
Object assertFact(Rules ruleset, Object fact) throws Exception
ruleset
- fact
- to assertException
void retractFact(Rules ruleset, Object fact) throws Exception
ruleset
- fact
- to retractException
Object assertEvent(Rules ruleset, Object event, String entryPoint) throws Exception
ruleset
- event
- entryPoint
- for the event streamException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.