转载至:https://blog.csdn.net/wo541075754/article/details/75349556

auto-focus

在agenda-group章节,我们知道想要让AgendaGroup下的规则被执行,需要在代码中显式的设置group获得焦点。而此属性可配合agenda-group使用,代替代码中的显式调用。默认值为false,即不会自动获取焦点。设置为true,则可自动获取焦点。

对于规则的执行的控制,还可以使用org.kie.api.runtime.rule. AgendaFilter来实现。用户可以实现该接口的accept方法,通过规则当中的属性值来控制是否执行规则。 
方法体如下:

boolean accept(Match match);
View Code

相关文章:

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