在Excel决策表中可能有或条件
我是流口水的新手,正在探索决策表。我想在决策表中或两个列吗?请浏览示例,这将有助于了解我的问题以及我想实现的目标。
它将生成以下规则,其中每列均由和。
rule "Simple Customer Categorization_10"
when
$c: LoanRequest(noCibil == "true", gender.equalsIgnoreCase("F"), type.equalsIgnoreCase("REGULAR"), amount <= 30)
then
$c.setRate(7.3);
end
但是,是否可以在规则中具有或条件,或者如何修改我的决策表以生成以下规则?
rule "Simple Customer Categorization_10"
when
$c: LoanRequest(noCibil == "true", gender.equalsIgnoreCase("F") || type.equalsIgnoreCase("REGULAR"), amount <= 30)
then
$c.setRate(7.3);
end
我也可以在指导决策表中做同样的事情吗?
注意:我知道规则应该是原子并将其简化为最简单的形式,但这是为了了解决策表无法/不能完成的操作。
I am new to drools and I am exploring the decision table. I want to OR two columns in the decision table is it possible? Please go through the example it will help to understand my question and what I wanted to achieve.
It will generate the following rule where each column is separated by AND.
rule "Simple Customer Categorization_10"
when
$c: LoanRequest(noCibil == "true", gender.equalsIgnoreCase("F"), type.equalsIgnoreCase("REGULAR"), amount <= 30)
then
$c.setRate(7.3);
end
However is it possible to have OR condition in the rule or how to modify my decision table such that the following rule is generated?
rule "Simple Customer Categorization_10"
when
$c: LoanRequest(noCibil == "true", gender.equalsIgnoreCase("F") || type.equalsIgnoreCase("REGULAR"), amount <= 30)
then
$c.setRate(7.3);
end
Can I also do the same in the guided decision table as well?
Note: I understand that rules should be atomic and reduced to the simplest form but this is to understand what can/can't be done with the decision table.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论