在Excel决策表中可能有或条件

发布于 2025-02-02 19:30:04 字数 916 浏览 3 评论 0原文

我是流口水的新手,正在探索决策表。我想在决策表中或两个列吗?请浏览示例,这将有助于了解我的问题以及我想实现的目标。

这是我的决策表:

它将生成以下规则,其中每列均由和。

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.

This is my decision table :
Excel decision table

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文