org.mule.module.drools
Class Drools

java.lang.Object
  extended by org.mule.module.drools.Drools
All Implemented Interfaces:
org.mule.api.NameableObject, org.mule.api.NamedObject, RulesEngine

public class Drools
extends Object
implements RulesEngine


Field Summary
protected static org.slf4j.Logger logger
           
 
Constructor Summary
Drools()
           
 
Method Summary
 Object assertEvent(Rules rules, Object event, String entryPoint)
           
 Object assertFact(Rules rules, Object fact)
           
 Object createSession(Rules rules)
           
 void disposeSession(Object sessionData)
           
 String getName()
           
 void retractFact(Rules rules, Object fact)
           
 void setMessageService(MessageService messageService)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger
Constructor Detail

Drools

public Drools()
Method Detail

createSession

public Object createSession(Rules rules)
                     throws Exception
Specified by:
createSession in interface RulesEngine
Returns:
DroolsSessionData - contains the KnowledgeSession plus any other stateful information
Throws:
Exception

disposeSession

public void disposeSession(Object sessionData)
                    throws Exception
Specified by:
disposeSession in interface RulesEngine
Throws:
Exception

assertFact

public Object assertFact(Rules rules,
                         Object fact)
                  throws Exception
Specified by:
assertFact in interface RulesEngine
Throws:
Exception

retractFact

public void retractFact(Rules rules,
                        Object fact)
                 throws Exception
Specified by:
retractFact in interface RulesEngine
Throws:
Exception

assertEvent

public Object assertEvent(Rules rules,
                          Object event,
                          String entryPoint)
                   throws Exception
Specified by:
assertEvent in interface RulesEngine
Throws:
Exception

setMessageService

public void setMessageService(MessageService messageService)
Specified by:
setMessageService in interface RulesEngine

setName

public void setName(String name)
Specified by:
setName in interface org.mule.api.NameableObject

getName

public String getName()
Specified by:
getName in interface org.mule.api.NamedObject


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.