Creatio development guide
PDF
This documentation is valid for Creatio version 7.16.0. We recommend using the newest version of Creatio documentation.

Rules. The "rules" property

Glossary Item Box

Introduction

Rules is a standard system mechanism, which enables the developer to add an implementation of typical functions by configuring view model columns.

The functions of rules are implemented in the BusinessRuleModule client module. Add the BusinessRuleModule module to the list of schema dependencies to use these functions.

define("CustomPageModule", ["BusinessRuleModule"],
    function(BusinessRuleModule) {
        return {
            // Client module implementation
        };
    });

Rule types are defined in the RuleType enumeration of the BusinessRuleModule module.

General procedure for declaring the rules:

  • All rules are described in the rules property of the schema.
  • The rules are applied to view model columns, not to controls.
  • Rules have names.
  • Rule parameters are set in its configuration object.

To learn more about business rules and to see the examples of their use, please refer to the “Setting the edit page fields using business rules” chapter.

© Creatio 2002-2020.

Did you find this information useful?

How can we improve it?