⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 5_rules.drl

📁 jboss规则引擎
💻 DRL
字号:
package org.drools.samples
import org.drools.benchmark.models.Account;

rule rule0
  when
    $acc : Account(status == "standard", title == "mr", accountId == "acc0")
  then
    System.out.println("rule0 fired");
end

rule rule1
  when
    $acc : Account(status == "standard", title == "mr", accountId == "acc1")
  then
    System.out.println("rule1 fired");
end

rule rule2
  when
    $acc : Account(status == "standard", title == "mr", accountId == "acc2")
  then
    System.out.println("rule2 fired");
end

rule rule3
  when
    $acc : Account(status == "standard", title == "mr", accountId == "acc3")
  then
    System.out.println("rule3 fired");
end

rule rule4
  when
    $acc : Account(status == "standard", title == "mr", accountId == "acc4")
  then
    System.out.println("rule4 fired");
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -