WF4规则引擎设计和性能

发布于 2024-12-26 13:39:09 字数 330 浏览 7 评论 0原文

我正在设计业务规则验证引擎,并选择 WF 规则引擎作为基础。 目前,我需要决定通过规则引擎向业务用户提供数据库访问权限是否是一件好事。

从一方面来说,它可能非常强大,因为我什至可以直接在规则编辑器中编写查询并使用数据库中的过程。从其他角度来看,我担心这种设计的性能可能会很慢。

首先我想到使用泛型,这样很容易创建不同的数据对象来进行规则验证,但是由于WF4不支持泛型类(至少我没有找到方法),我考虑了其他方法来使工作流“泛型” “并且不要使用规则所需的数据创建特定的工作流程。

所以主要问题是: 1)规则中使用SQL查询好不好 2)我还有哪些其他选项可以使规则工作流程通用?

谢谢。

I'am designing Business Rules Validation engine and I had choose WF Rules Engine as a basis.
Currently I need to decide if it's a good thing to give DB access through Rules Engine to business users.

From one point, it's might be very powerful, since I even can give ability to write queries and use procedures in DB directly in Rules editor. From other point I afraid that the performance of such design may be very slow.

First I thought to use Generics, so it would be easy create different data objects for rules validation, but since WF4 not support the Generic classes (at least I didn't found a way), I thinking about other way to make workflow "Generic" and do not create specific workflow with data that the rules needs to.

So the main questions are:
1) Is it good to use SQL queries in Rules
2) What other options I have, to make rules workflow Generic?

Thank you.

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

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

发布评论

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