One of the advantages of using a rules language like SQRL is that the actions taken by the system can easily be explained and understood.
1 | CREATE RULE SimilarTextIpSpam WHERE |
The function addUserToReviewQueue
does not exist in the standard library, but if you were implementing it you can access the rules that triggered the call and their reasons.
In the case above the cause may be:
1 | { |
1 | registry.registerStatement( |
Your addUserToReviewQueue
function will be provided with additional context about why it was triggered. For more information about exactly what is included see the WhenCause
reference documentation.