java - KIE Workbench 决策表没有给出任何结果
问题描述
这是我的规则文件;
package com.myspace.sample;
import com.myspace.sample.lookupValue;
rule "5 Year Loan"
when
LK:lookupValue(type=="5 Year")
then
LK.setValue("5");
end
rule "7 Year Loan"
when
LK:lookupValue(type=="7 Year")
then
LK.setValue("4.8");
end
rule "10 Year Loan"
when
LK:lookupValue(type=="10 Year")
then
LK.setValue("4");
end
这是我的对象模型
package com.myspace.sample;
public class lookupValue implements java.io.Serializable {
static final long serialVersionUID = 1L;
@org.kie.api.definition.type.Label(value = "name")
private java.lang.String name;
@org.kie.api.definition.type.Label(value = "type")
private java.lang.String type;
@org.kie.api.definition.type.Label(value = "value")
private java.lang.String value;
public lookupValue() {
}
public java.lang.String getName() {
return this.name;
}
public void setName(java.lang.String name) {
this.name = name;
}
public java.lang.String getType() {
return this.type;
}
public void setType(java.lang.String type) {
this.type = type;
}
public java.lang.String getValue() {
return this.value;
}
public void setValue(java.lang.String value) {
this.value = value;
}
}
解决方案
推荐阅读
- node.js - 将 Pdf 缓冲区转换为 jpg 图像缓冲区(NodeJS)
- java - 我得到了 outOfMemory 异常是什么原因?
- c++ - Arduino IDE 和 esp8266 arduino-crypto 库
- python - Django TypeError 缺少 1 个必需的位置参数:'listing_id'
- wpf - 如何使用 BasedOn 模板化 Generic.xaml 中的切换按钮?
- javascript - HTML 选择选项:将 selected 属性设置为输入元素无效
- ios - 封装核心数据对象
- assembly - dos系统初始化中的汇编语言编程问题
- c# - 如何在单个查询中执行多个插入语句?
- excel - VBA:将不同变量的值放在一行单元格中