LHS简介

在规则文件组成章节,我们已经了解了LHS的基本使用说明。LHS是规则条件部分的统称,由0个或多个条件元素组成。前面我们已经提到,如果没有条件元素那么默认就是true。 
没有条件元素,官方示例:

rule "no CEs"
when
    // empty
then
    ... // actions (executed once)
end

// The above rule is internally rewritten as:

rule "eval(true)"
when
    eval( true )
then
    ... // actions (executed once)
end
View Code

相关文章:

  • 2021-11-26
  • 2021-10-03
  • 2021-12-10
  • 2021-09-11
  • 2021-07-10
  • 2021-08-25
  • 2022-12-23
  • 2021-08-26
猜你喜欢
  • 2022-01-28
  • 2021-08-11
  • 2021-09-22
  • 2021-09-13
  • 2022-01-12
  • 2021-08-21
  • 2021-08-08
相关资源
相似解决方案