RuleAction coding group
Lua access code
To access the code of the codings below, append the coding group name and coding name to syslib.model.codes,
see an example below.
return syslib.model.codes.RuleAction.ACTIVATE
Codings
| Name | Code | Description |
|---|---|---|
| ACTIVATE | 2 | Enable object and stop searching for applicable rules |
| CONTINUE | 1 | Continue searching for rules, or create object in its default state |
| DEACTIVATE | 5 | Disable object and stop searching for applicable rules |
| DISCARD | 6 | Discard object and stop searching for applicable rules |
| SCRIPT | 3 | Execute the Lua script in the rule; the return value of the script determines if the search for other applicable rules continues or stops. With no return, the search for applicable rules continues |
| STOP | 4 | Stop searching for rules and create object in its default state |