每种规则服务facade操作都创建了triggerpoint类的实例并通过使用对于调用的引用、输入参数及规则名称来调用该类的trigger函数。
Each rule service facade operation creates an instance of the TriggerPoint class and invokes the trigger function on that class with the reference to invoker, input parameters, and the rule name.
这些函数可以直接用名称引用,并且可以在groovy脚本中定义,这样非常有助于它们的重复使用。
These functions can be referenced directly by name and can be defined in Groovy scripts, where they can seriously facilitate reuse.
这里不需要调用一个字符一个字符地进行比较的equals函数,相反,您可以通过引用将解析器报告的名称与字符串常量进行比较。
Instead of making calls to equals which compares strings character by character, you can compare names reported by the parser against string constants by reference.
应用推荐