流口水:如何在决策表中使用forall以匹配逗号分开的字符串中的任何项目

发布于 2025-02-03 07:39:29 字数 313 浏览 2 评论 0原文

如何在决策表中定义流口水的条件元素?对于前。如果输入与逗号分离的绳子之一匹配,则“水果”和“蔬菜”是正确的。 “ ABC组合”如果输入字符串包含所有逗号分隔字符串,则为true。我使用自定义函数实现了同样的功能,只想知道是否可以通过forall “在此处输入图像描述”

How to define Drool's conditional element forall in decision table? for ex. "fruit" and "vegetable" true if the input matches one of the comma separated string. "abc combo" true if the input string contains all of the comma separated string. I have achieved the same using a custom function, just want to know if the same can be achieved by forall?enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄风 2025-02-10 07:39:29

匹配任意||在Forall中,匹配所有使用& amp;

示例

  • eval(forall(&&){name ==“ $”})
  • eval(forall(||){name ==“ $”})

To match either use the || in the forAll and to match all use &&

Example

  • eval(forall(&&){name == "$"})
  • eval(forall(||){name == "$"})
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文