public interface RuleEngineLocal extends EJBLocalObject, RuleEngine
RuleEngine
interface
which defines the API for QuickRules engine invocation.Modifier and Type | Field and Description |
---|---|
static String |
RETE
An identifier to identify a bean of the type Rete
|
Modifier and Type | Method and Description |
---|---|
RulesetContext |
createRulesetContext(String projectName,
String rulesetName)
|
AbstractProject |
getProject(String projectName)
overrides
RuleEngine.getProject(String) |
AbstractRuleset |
getRuleset(String projectName,
String rulesetName)
overrides
RuleEngine.getRuleset(String, String) |
RulesetContext |
invokeRuleset(RulesetContext rulesetContext)
overrides
RuleEngine.invokeRuleset(RulesetContext) |
List |
invokeRuleset(String projectName,
String rulesetName,
List facts)
|
getEJBLocalHome, getPrimaryKey, isIdentical, remove
createRulesetContext, invokeRuleEntity
static final String RETE
List invokeRuleset(String projectName, String rulesetName, List facts) throws NoSuchProjectException, NoSuchRuleException, RuleException
invokeRuleset
in interface RuleEngine
projectName
- The name of the Project whose Ruleset should be invoked.rulesetName
- The name of the Ruleset to invokefacts
- A list of facts to assert for the invocationNoSuchProjectException
- - thrown when there is no Project found with the given
name.NoSuchRuleException
- - thrown when there is no Ruleset found with the given
name.RuleException
- - thrown when there is an error with the Ruleset being
loaded and invoked. Typically it is an algorithm specific
exception or a I/O exception which is wrapped in the
generic RuleException.RulesetContext invokeRuleset(RulesetContext rulesetContext) throws NoSuchProjectException, NoSuchRuleException, RuleException
RuleEngine.invokeRuleset(RulesetContext)
invokeRuleset
in interface RuleEngine
rulesetContext
- The context of the Ruleset to invoke. The context contains all
details about the Ruleset and the facts to be used for
invocation.NoSuchRuleException
- thrown when there is no Ruleset found with the given nameRuleException
- thrown when there is an error with the Ruleset being
loaded and invoked. Typically it is an algorithm specific
exception or a I/O exception which is wrapped in the
generic RuleExceptionNoSuchProjectException
RulesetContext createRulesetContext(String projectName, String rulesetName) throws NoSuchProjectException, NoSuchRuleException, RuleException
createRulesetContext
in interface RuleEngine
projectName
- name of the ProjectrulesetName
- name of the RulesetNoSuchProjectException
NoSuchRuleException
RuleException
AbstractRuleset getRuleset(String projectName, String rulesetName) throws NoSuchProjectException, NoSuchRuleException, RuleException
RuleEngine.getRuleset(String, String)
getRuleset
in interface RuleEngine
projectName
- name of the ProjectrulesetName
- name of the RulesetNoSuchProjectException
NoSuchRuleException
RuleException
AbstractProject getProject(String projectName) throws NoSuchProjectException, RuleException
RuleEngine.getProject(String)
getProject
in interface RuleEngine
projectName
- name of the ProjectNoSuchProjectException
RuleException
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] BRMS-CORE
|
[sap.com] tc/brms/connector/app
|
-
|
BC-BMT-BRM-ENG
|
[sap.com] BRMS-FACADE
|
[sap.com] tc/brms/facade
|
api
|
BC-BMT-BRM-ENG
|
Copyright 2018 SAP AG Complete Copyright Notice