Interface BusinessRulesManagerLocal
-
public interface BusinessRulesManagerLocalAn interface for Business Rules Manager
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMAPPED_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<BusinessRuleResult>execBusinessRules(java.util.List<BusinessRule> rulesToExecute, BusinessRulesInputData inputData, java.lang.Boolean stopOn1stError)Executes all business rules based on input data and creates result listjava.util.List<BusinessRule>getAllRules(java.lang.String sessionID)Returns a list of business rules available in the system.BusinessRulesConfiggetBusinessRules(java.lang.String sessionID)Returns the content of the business rules configuration file (businessrules.xml)booleanpluginExists(java.lang.String mappedName)Checks if plug-in with given mappedName exists on the application server
-
-
-
Field Detail
-
MAPPED_NAME
static final java.lang.String MAPPED_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBusinessRules
BusinessRulesConfig getBusinessRules(java.lang.String sessionID)
Returns the content of the business rules configuration file (businessrules.xml)- Parameters:
sessionID- session identifier- Returns:
- content of the configuration file
-
execBusinessRules
java.util.List<BusinessRuleResult> execBusinessRules(java.util.List<BusinessRule> rulesToExecute, BusinessRulesInputData inputData, java.lang.Boolean stopOn1stError)
Executes all business rules based on input data and creates result list- Parameters:
rulesToExecute- list of business rules to executeinputData- input data for executing all rulesstopOn1stError- a flag if we should stop on the first error- Returns:
- result of executed business rules
-
pluginExists
boolean pluginExists(java.lang.String mappedName)
Checks if plug-in with given mappedName exists on the application server- Parameters:
mappedName- mapped name of a plug-in- Returns:
- true means exists
-
getAllRules
java.util.List<BusinessRule> getAllRules(java.lang.String sessionID)
Returns a list of business rules available in the system. The list has to be sorted by rule name. You can use BusinessRuleNameComparator comparator class.- Parameters:
sessionID- session identifier- Returns:
- list of business rules
- See Also:
BusinessRuleNameComparator
-
-