Interface BusinessRulesManagerLocal


  • public interface BusinessRulesManagerLocal
    An interface for Business Rules Manager
    • 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 execute
        inputData - input data for executing all rules
        stopOn1stError - 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