WF4规则引擎设计和性能
我正在设计业务规则验证引擎,并选择 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 技术交流群。

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