org.jboss.soa.esb.services.rules
Interface RuleService


public interface RuleService

RulesEngine Interface. Separates implementation from the runtime, allowing the ESB to support different implementations of rule engines.

Author:
jdelong@redhat.com

Method Summary
 Message continueStatefulRulesExecution(StatefulRuleInfo statefulRuleInfo, Message msg)
          Continue executing rules where the working memory already exists.
 Message executeStatefulRules(StatefulRuleInfo statefulRuleInfo, Message msg)
          Execute rules using a certain ruleSet and domain specific language using the Stateful rule engine API
 Message executeStatefulRulesFromDecisionTable(StatefulRuleInfo statefulRuleInfo, Message msg)
          Execute rules from a decision table using the Stateful rule engine API
 Message executeStatefulRulesFromRuleAgent(StatefulRuleInfo statefulRuleInfo, Message msg)
          Execute rules using a rule package retrieved via the Rule Agent from a URL of local file system using the Stateful rule engine API
 Message executeStatelessRules(RuleInfo ruleInfo, Message message)
          Execute rules using a certain ruleSet and domain specific language using the Stateless rule engine API
 Message executeStatelessRulesFromDecisionTable(RuleInfo ruleInfo, Message message)
          Execute rules from a decision table using the Stateless rule engine API
 Message executeStatelessRulesFromRuleAgent(RuleInfo ruleInfo, Message message)
          Execute rules using a rule package retrieved via the Rule Agent from a URL of local file system using the Stateless rule engine API
 void setConfigTree(ConfigTree configTree)
           
 

Method Detail

setConfigTree

void setConfigTree(ConfigTree configTree)

executeStatelessRules

Message executeStatelessRules(RuleInfo ruleInfo,
                              Message message)
                              throws org.jboss.internal.soa.esb.services.rules.RuleServiceException
Execute rules using a certain ruleSet and domain specific language using the Stateless rule engine API

Parameters:
ruleInfo - -
message - - Message that is updated with the results.
Returns:
Message with updated objects.
Throws:
org.jboss.internal.soa.esb.services.rules.RuleServiceException

executeStatelessRulesFromDecisionTable

Message executeStatelessRulesFromDecisionTable(RuleInfo ruleInfo,
                                               Message message)
                                               throws org.jboss.internal.soa.esb.services.rules.RuleServiceException
Execute rules from a decision table using the Stateless rule engine API

Parameters:
ruleInfo -
message - - Message that is updated with the results.
Returns:
Message with updated objects.
Throws:
org.jboss.internal.soa.esb.services.rules.RuleServiceException

executeStatelessRulesFromRuleAgent

Message executeStatelessRulesFromRuleAgent(RuleInfo ruleInfo,
                                           Message message)
                                           throws org.jboss.internal.soa.esb.services.rules.RuleServiceException
Execute rules using a rule package retrieved via the Rule Agent from a URL of local file system using the Stateless rule engine API

Parameters:
ruleInfo -
message - - Message that is updated with the results.
Returns:
Message with updated objects.
Throws:
org.jboss.internal.soa.esb.services.rules.RuleServiceException

executeStatefulRules

Message executeStatefulRules(StatefulRuleInfo statefulRuleInfo,
                             Message msg)
                             throws org.jboss.internal.soa.esb.services.rules.RuleServiceException
Execute rules using a certain ruleSet and domain specific language using the Stateful rule engine API

Parameters:
statefulRuleInfo -
message - - Message that is updated with the results.ry
Returns:
Message with updated objects.
Throws:
org.jboss.internal.soa.esb.services.rules.RuleServiceException

executeStatefulRulesFromDecisionTable

Message executeStatefulRulesFromDecisionTable(StatefulRuleInfo statefulRuleInfo,
                                              Message msg)
                                              throws org.jboss.internal.soa.esb.services.rules.RuleServiceException
Execute rules from a decision table using the Stateful rule engine API

Parameters:
statefulRuleInfo -
message - - Message that is updated with the results.
Returns:
Message with updated objects.
Throws:
org.jboss.internal.soa.esb.services.rules.RuleServiceException

executeStatefulRulesFromRuleAgent

Message executeStatefulRulesFromRuleAgent(StatefulRuleInfo statefulRuleInfo,
                                          Message msg)
                                          throws org.jboss.internal.soa.esb.services.rules.RuleServiceException
Execute rules using a rule package retrieved via the Rule Agent from a URL of local file system using the Stateful rule engine API

Parameters:
statefulRuleInfo -
message - - Message that is updated with the results.mory
Returns:
Message with updated objects.
Throws:
org.jboss.internal.soa.esb.services.rules.RuleServiceException

continueStatefulRulesExecution

Message continueStatefulRulesExecution(StatefulRuleInfo statefulRuleInfo,
                                       Message msg)
                                       throws org.jboss.internal.soa.esb.services.rules.RuleServiceException
Continue executing rules where the working memory already exists.

Parameters:
statefulRuleInfo -
message - - Message that is updated with the results.
Returns:
Message with updated objects.
Throws:
org.jboss.internal.soa.esb.services.rules.RuleServiceException