如何将WorkFlow用作业务规则引擎? [英] How to use WorkFlow as a business rule engine?

查看:97
本文介绍了如何将WorkFlow用作业务规则引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

       使用方法在C#中将WorkFlow用作Visual Studio 2010中的业务规则引擎?

         How to use  WorkFlow as a business rule engine in visual studio 2010 with C# ?

我使用分层架构,我的层是数据访问,业务,服务(WCF),演示文稿,我们为每一层有不同的解决方案.

Am using Layered architechture,my layers are Data Access,Business,Service(WCF),Presentation,We are having different solutions for each layer.

现在我们在业务解决方案的类文件中编写业务规则作为方法.业务层的工作是继承数据访问层方法并应用业务规则,工作完成后,我们将DLL传递到下一层,例如Service (WCF),同样 我们正在使用.

Now we are writting business rules as a methods inside the class file in Business solution.Business layer work is to inherit the Data access layer methods and applying the business rules,After the work completion we Pass the DLL to next layer like Service(WCF),likewise we are using now.

如果我将工作流用作业务规则,如何使用它,当我在分层体系结构中将工作流用作业务规则时,要执行哪些步骤.

If I use Workflow as a business rule how to use it,What are the steps to do it when i use workflow as a business rule in my layered architechture.

预先感谢

AarthiPalanisamy

AarthiPalanisamy

推荐答案

一种方法是通过WCF端点公开您的工作流.从WCF调用中调用了适当的XAMLX,启动了工作流,并提供了响应.这听起来比您现在要做的要好:我不认为在两者之间传递DLL 至少可以说,各层非常有效.

One method of doing this would be to expose your Workflow via WCF endpoints. The appropriate XAMLX is called from a WCF call, workflow kicks in, and a response is provided. This sounds better than what you'd doing now: I don't think passing DLLs between layers is very efficient, to say the least.

如果您认为适当,请将此回答标记为答案.

Please mark this response as answer if you feel it is appropriate.


这篇关于如何将WorkFlow用作业务规则引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆