So I know I've asked for this feature before, and so have others, but I'm going to ask again now that there is a "simpler" method to implement it. My suggestion is to utilise the existing Required Expression with Private Boolean's. eg
I know I'm being somewhat lazy, but having to manually configure this every time I write or modify a rule gets tiresome. I'd really love this to be as easy as enabling a slider.
I think Bruce is correct that it would be problematic to cover all scenarios. However, if it only covered the most basic scenario, if the rule is triggered and executing do not trigger again, would that be doable? That is the most common use.
Personally, Iād have thought that under the hood of RM there was an āexit ruleā subroutine that is called whenever a rule completes or is canceled.
Honestly, Iām a bit shocked at the suggestion that this may not be the case.
I agree with the idea of a toggle for this. Private Booleans give a lot more flexibility - for example you can set booleans for another rule and have a rule that runs only once until reset by a different rule.
But a single button for "allow only one instance of this rule to run" would definitely be awesome.
I don't have a specific example, but it is possible. You can run the actions of other rules in RM, so I just wondered if you did that how it might impact this scenario.
I know how to enter it, just canāt find description of how it works!
It appears to fire off a new thread to run those actions but are they run in parallel with calling rule or does calling rule wait for āreturnā?
Correct. It just runs the actions from the rule bypassing other steps. In fact, I have a lot of "Rules" without triggers at all, I just call the actions from other rules.
One thing I haven't actually looked into yet is - if a rule has a Required Expression that is currently False, will Run Rule Actions bypass the required expression and run the rules, or is the required expression still "required" for the actions to be run.. Can anybody confirm?
I always pictured that call as ignoring everything above the rule's Actions section (i.e. Triggers and Req's Expressions), but it's a good question -- although some of my called rules have triggers too (like you, some don't), I don't think I have any with Req'd Expressions...