Business rules. The businessRules property
Glossary Item Box
Introduction
In bpm’online, the behavior configuration of page / detail fields is done through business rules. Using business rules, you can configure the following field behavior:
- Hiding and displaying fields
- Enable or disable editing
- Compulsory or optional
- Filtering lookup fields depending on other field values
Unlike the business rules defined in the rules property of the page view model schema (see “ Rules. The "rules" property”), the business rules defined in the businessRules property are generated by the detail or the section wizard and have a higher execution priority. The BusinessRuleModule enumeration is not used when describing the generated business rule.
When creating a new business rule, the wizard generates a name for it and adds it to the custom schema of the edit page view model.
If the business rule is disabled, the enabled property of its configuration object is set to false.
When you delete a business rule, its configuration object remains in the custom schema of the edit page view model, but the removed property is set to true.
ATTENTION We do not recommend editing the businessRules property manually! |
Editing an existing business rule
After editing the custom business rule in the wizard, the business rule configuration object remains unchanged in the rules property of the edit page view modelю This creates a new version of the business rule configuration object with the same name in the businessRules property.
The business rule defined in the businessRules property has a higher execution priority when processing a business rule at runtime. Therefore, subsequent changes to this rule in the rules property will not affect the system in any way.
NOTE When you delete or disable the business rule, the changes made in the configuration object of the businessRules property have a higher priority. |