Deprecation notice

Please, migrate to ECA: Event - Condition - Action and Dependent Fields modules because this module won't have a D11 compatible version.

The Business Rules module is inspired on Rules module and allow site administrators to define conditionally actions execution based on events. It's based on variables and completely build for Drupal 8.

This module has a fully featured user interface to completely allow the site administrator to understand and create the site business rules.

It's also possible to extend it by creating new ReactsOn Events, Variables, Actions and Conditions via plugins.

Features

Integration

The Beta1 version comes with a really important functionality that is to allow the site builder to change the form view mode based on any condition. For example, if you have some field on the entity form that only can be filled by someone with a special role, all you need to do is to create a new view mode for the form, enable this field there and only display this form mode with this field for this role.

User guide

https://www.drupal.org/docs/8/modules/business-rules
Video Tutorials created by C.E.A

Safe mode

If for some reason you've created some rule that's put you in a bad situation, use the safe mode to disable all rules. To do that, include ?brmode=safe on the URL and disable the rule on the Business Rule configuration page.

Installation

To install the Business Rules module follow the standard process by downloading the latest version from Drupal.org, uncompress it and copy to the modules folder.

On the administration menu, access the "Extend" option, and check the "Business Rules" checkbox.

After installation you need to clear all caches and you can access the Business Rules configuration at the Configuration menu under Workflow category.
/admin/config/workflow/business_rules

IMPORTANT

Many people are registering issues related to MySql memory configuration. Please, make sure you have configured MySql as it is supposed to be configured to Drupal use.

You can follow this article.

Dependencies

Important Update note

If you are updating Business Rules from version previous than alpha24, please run the Drupal console command line: drupal update:entities from your site directory.

Recommend projects

Similar projects

  • Rules: Although Business Rule's functionalities are very close Rules module, the main difference is the ability to handle form events, and that Business Rules is ready to be used on Drupal 8. This module was developed because of the need of use these functionalities in newer Drupal 8 projects. During the development of this module, we've also included some absent features on Rules such as flowchart diagram, explicitly declared variables, views interaction and form change actions.
  • Conditional Fields: While It's possible to hide/show entity fields based on data in other fields by creating Rules, Actions, etc., there's quite a bit of set-up involved (even though it's still all on the Web UI). Unless you're already using this module's rules and actions, it would probably be better to use Conditional Fields as it has a nicer UX for this use case.

Stay in touch using Drupal Slack channel

http://drupalslack.herokuapp.com

Supporting organizations: 
Drupal 8+ maintenance
Created a Drupal 10 compatible release

Project information

Releases