...
Code Block |
---|
RuleApi.rulesToString(groupA) |
Print out all rules from GSH:
Code Block |
---|
RuleApi.rulesToString()
|
Error handling
If the rule execution fails for some reason, it should be logged (which could include emailing administrators), but it probably should not affect the transaction of the operation that triggered the rule. Maybe this can be a setting on a per rule basis and where applicable (e.g. if it is a flattened membership rule trigger, then there is no transaction since the rule fires post commit anyways.
...