此内容没有您所选择的语言版本。
Chapter 10. Functions
10.1. Functions 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Functions are a way to put semantic code in a rule source file, as opposed to in normal Java classes. The main advantage of using functions in a rule is that you can keep the logic all in one place. You can change the functions as needed.
Functions are most useful for invoking actions on the consequence (
then) part of a rule, especially if that particular action is used repeatedly.