Interface BusinessRulesManagerLocal
public interface BusinessRulesManagerLocal
An interface for Business Rules Manager
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionexecBusinessRules(List<BusinessRule> rulesToExecute, BusinessRulesInputData inputData, Boolean stopOn1stError) Executes all business rules based on input data and creates result listgetAllRules(String sessionID) Returns a list of business rules available in the system.getBusinessRules(String sessionID) Returns the content of the business rules configuration file (businessrules.xml)booleanpluginExists(String mappedName) Checks if plug-in with given mappedName exists on the application server
-
Field Details
-
MAPPED_NAME
- See Also:
-
-
Method Details
-
getBusinessRules
Returns the content of the business rules configuration file (businessrules.xml)- Parameters:
sessionID- session identifier- Returns:
- content of the configuration file
-
execBusinessRules
List<BusinessRuleResult> execBusinessRules(List<BusinessRule> rulesToExecute, BusinessRulesInputData inputData, 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
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
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:
-