Is it possible to enable/disable rules created textually via Paper UI?

I have created a rule via a .rules file but wonder if it is possible to manage it (meaning turning it on or off) from within the Paper UI or any GUI toggle functionality.

Not directly. You can create a switch and add an if statement to the rule so that the rule only does something if the switch is on.

Only the Experimental Rules Engine had the ability to enable and disable rules directly.

1 Like

Thank you! :+1:t3:

Sorry to come back to this, but I’m so new at this that I can’t figure out how to create such a switch to control the rule. :blush: Any tutorials or snippets you can suggest?

Put the Unbound Item on your sitemap to control it.

In your Rule you have:

    if(MyRuleItemSwitch.state == OFF) return;

    // code to perform when the Rule is enabled through MyRuleItemSwitch
1 Like