决策表的替代方案

发布于 2024-11-09 02:16:06 字数 232 浏览 4 评论 0原文

我们的应用程序正在快速增长。因此,我开始研究业务规则,将其作为将部分逻辑与代码分离的方法(大 DAAAH;)。主要目标是允许我们的业务人员编辑和部署规则,而无需重新编译任何内容(另一个大 DAAAH)。到目前为止,我只能找到“决策表”作为企业管理规则的一种方式的参考。问题是,我试图将决策表的概念引入我们的业务,但至少可以说,得到了非常“混合”的回应:) 简而言之,他们不想理解它们。问题:决策表有替代方案吗?对于销售人员来说更容易理解的东西是什么?

Our app is growing rapidly. So, I begun looking into business rules as a way to separate some of our logic from the code (big DAAAH ;). The main goal is to allow our business guys to edit and deploy rules without recompiling anything (another big DAAAH). So far, I could only find references to "decision tables" as a way for business to manage rules. The thing is that I tried to introduce the concept of decision tables to our business and got a very "mixed" response, to say the least :) In short, they don't want to understand them. Question: is there an alternative to decision tables? Something that is easier to understand for sales people?

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

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

发布评论

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

评论(2

梦醒灬来后我 2024-11-16 02:16:06

我认为决策表只有一种替代方案 - 决策树。我认为有些人也称它们为“流程图”。我知道一些商业工具将 UI 显示为树,让用户通过拖放“构建”规则。但在内部,当您将规则保存为文件时,它们会将这些树转换为决策表或类似结构的对象。

I think there is only one alternative to decision tables - decision trees. Some guys also call them "flow charts", I think. I know several commercial tools that present UI as trees to let users "build" rules with drag-n-drop. Internally though, they convert those trees into decision tables or similarly structured objects when you save rules as files.

一绘本一梦想 2024-11-16 02:16:06

通常,像您在问题中提出的规则一样的规则会聚集在一起,例如

  1. 如果价格 < 如果价格 == 100,则运行;
  2. 如果价格 == 100,则买入
  3. ;如果价格 > 100, 则买入100且< 120 then Wait
  4. if Price >= 120 then Sell

可以轻松地将这个逻辑放入只有 2 个标头 Price 和 Action 的决策表中。大多数现代规则引擎都支持这种决策表。经验表明,业务用户理解此类表没有问题

Usually the rules like the one that you presented in your question go in clusters, such as

  1. if Price < 100 then Run
  2. if Price == 100 then Buy
  3. if Price > 100 and < 120 then Wait
  4. if Price >= 120 then Sell

There is easily to put this logic in a decision table with just 2 headers Price and Action. Most of the modern rule engines have support for this kind of decision tables. The experience shows that business users have no problems to understand such tables

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