Rule groups
Rules > Rules manager > Rule groups
A rule group is a way to locate several rules together that eases the organization of such rules, or a way to schedule some of them. The groups are shown as a list in the Groups section of the Rules manager.
Create a group
Click on the New button and type a name. You can later double-click it to change it.
Expand the Groups section to display the Type column and note that the group has been created as Type Normal by default.
There are three different types of group:
-
Normal. Its function is to simply organize rules. For example, the application administrator creates a group called "Product" to store several rules that act on fields of the "Product" table.
-
Only scheduled. A scheduled group is used to put together a number of rules that need to be periodically triggered and evaluated by the server at a certain interval of time (Hour, Day, Week, Month or Year, server time), based on the specified criteria. Note that all rules in this group are scheduled at the same time, i.e., a rule cannot be individually scheduled. Naturally, if desired, it is possible to define a scheduled group that contains a single rule.
-
Normal and scheduled. Similar to the one above, but the rules placed into this group will not only be triggered on a regular basis by the server, but also by the users on forms or via imports whenever the conditions are met.
Example of how "Normal and scheduled" rules are evaluated depending on their interval and user triggering
Server date and time | Case |
---|---|
31-Aug-15 22:58 |
Scheduled rule "SchR1" was saved in Rule group "N&SchGH" with Hour interval. Scheduled rule "SchR2" was saved in Rule group "N&SchGM" with Month interval. |
31-Aug-15 23:00 |
New hour, but no evaluation is done by the server as the scheduler polls every 5 minutes (default time, but configurable per server, counted from the moment the scheduler was activated by the server administrator). |
31-Aug-15 23:01 |
5 minutes have passed from the last poll (simulating it was a couple of minutes before saving the rules), and the scheduler now detects that an hour have passed. The server triggers "SchR1" and all other active rules in scheduled groups set to Hour interval. |
31-Aug-15 23:02 |
The "SchR1" rule is triggered by a user fulfilling its criteria from an application form. |
31-Aug-15 23:06 ...23:11 ...23:16 and so on |
5 minutes have passed from the last poll, but the scheduler does not detect any new hour, day, month, etc. The server does not trigger any rule. |
01-Sep-15 00:01 |
5 minutes have passed from the last poll, and the scheduler now detects that an hour and a month have passed. The server triggers "SchR1" and "SchR2" and all other active rules in scheduled groups set to Hour and Month interval. |
Read more on scheduling of rules here.
Add existing rules into a group
Right after the Rules manager is loaded, all existing rules are displayed under the Rules section. First, select the rules you want to move and then drag the next to the Name of the rule and drop it to the proper group.
Delete a rule group
Select the group and click on the Delete button.
Deletion of a rule group will cause the cascade deletion of any rules currently in the group. A warning message will pop up notifying this. If you want to delete the group, but not its rules, you must first move the rules into "Ungrouped" or another group and, once empty, proceed with the deletion. |
Rename a rule group
Double-click the group, type the new name and hit Enter. Click on the Save all button.