Class RulesDefinitionI18nLoader


  • public class RulesDefinitionI18nLoader
    extends java.lang.Object
    Loads the English bundles of rules (name, description and parameters) that are deprecated since 4.2. It can be useful when loading existing XML files that do not contain rule names and descriptions.
    This class must be executed after declaring rules on RulesDefinition.NewRepository.
    Note that localization of rules was dropped in version 4.2. All texts are English.
    Since:
    4.3
    See Also:
    for an example
    • Constructor Detail

      • RulesDefinitionI18nLoader

        public RulesDefinitionI18nLoader​(RuleI18n i18n)
    • Method Detail

      • load

        public void load​(RulesDefinition.NewRepository repo)
        Loads descriptions of rules and related rule parameters. Existing descriptions are overridden if English labels exist in bundles.