哪个是 WF4.0 更好的架构? [英] which one is better architecture for the WF4.0?

查看:23
本文介绍了哪个是 WF4.0 更好的架构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的团队将为日志运行流程设计一个工作流解决方案.我们必须维护工作流的持久性以及跟踪和版本控制.工作流服务器需要执行多个工作流.我们正在使用 wf4.0.我们正在为工作流服务器寻找最佳架构.以下几点是我们的考虑因素.

Our team is going to design a workflow solution for the log running processes. We have to maintain persistence and tracking and versioning for workflow. Workflow server needs to execute multiple workflow. We are using wf4.0. We are finding the best architecture for the workflow server. Following points are consideration in our mind.

  1. WCF 和 wf 之间的集成以及存储在数据库中的工作流.在这种方法中,客户端调用 wcf 服务,从数据库加载工作流 xaml 文件,并使用加载的工作流创建 WorkflowApplication 对象并执行它.在这种方法中,只有一个端点暴露给 wcf 服务.现在 wcf 服务负责使用工作流应用程序类启动工作流.

  1. Integration between WCF and wf and workflow stored in database. In this approach, Client call a wcf service that load a workflow xaml file from database and create object of WorkflowApplication with loaded workflow and execute this. In this approach only one endpoint exposed with the wcf service. Now wcf service responsibility to start a workflow using workflowapplication class.

工作流服务与 wcf 的内置集成.在其中使用消息活动开发工作流并由工作流服务主机托管的工作流,客户端通过其端点直接调用.

Inbuilt integration of workflow service with wcf. In which a workflow is developed with message activity and hosted with workflowservice host, client call directly by its endpoint.

现在我必须从其中一种方法中选择一种方法.请建议我选择最适合日志运行工作流的一种或任何其他方法,同时保持持久性、跟踪和版本控制.

Now I have to choose one approach from one of them. please suggest me to choose one or any other approach that is best suitable for log running workflow that also maintains persistence, tracking and versioning.

推荐答案

使用 WCF 集成公开工作流是迄今为止最简单的方法.您可以自己管理一切,但在大多数情况下,您所做的只是复制已经为您编写的代码.如果您喜欢挑战并按小时支付罚款,但如果您想完成工作,则内置解决方案的效率要高得多.

Exposing the worklfow using the WCF integration is by far the easiest way to go. You can manage everything yourself but for the most part all you are doing is duplicating code that has already been written for you. If you like a challenge and are paid by the hour fine but if you want to get things done the inbuild solution is far more productive.

这篇关于哪个是 WF4.0 更好的架构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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