Windows工作流基础:多个应用程序 [英] Windows Workflow Foundation: Multiple applications

查看:60
本文介绍了Windows工作流基础:多个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在运行基于我们的定制框架几个ASP.NET应用程序(每个客户一个)(这只是延长ASP.NET)。每个Web应用程序中使用它自己的数据库(在连接字符串的任期初始目录)。现在我们想工作流功能(分别为我们的框架)添加到应用程序。特定的工作流将是所有应用程序仅每个工作流的一些初始设置可以改变,例如同一在一个应用程序中的电子邮件将被发送到用户X,但在其他应用程序中的用户Y

We are running several ASP.NET applications (one per customer) based on our custom framework (which just extend ASP.NET). Each web application use its own database (Initial Catalog in the term of connection string). Now we would like to add workflow capability to the applications (to our framework respectively). The particular workflows will be the same for all the applications only some initial settings of each workflow can vary, e.g. in one application the e-mail will be send to the user X, but in other application to the user Y.

现在的问题是,如果我们可以安装一个工作流引擎(与持久化一个数据库),并分享这个对所有Web应用程序的所有工作流程。

The question is if we can install one workflow engine (with one database for persistence) and share this for all workflows in all web applications.

如果是这样,引擎的工作流程再GET知道特定的工作流程所属的Web应用程序?我们应该在工作流程的某个地方存放一些应用程序标识符?

If so, how then workflow engine get knows the particular workflow belongs to which web application? Should we store some application identifier somewhere in workflow?

感谢您的建议!

推荐答案

如果所有的工作流程都是一样的,你可以使用一个WorkflowServiceHost中为每个客户提供如电子邮件地址作为启动参数的附加信息。但是,如果你认为你要调整为不同的客户端worklflows我会为每一个特定的客户端不同的主机。当然,你总是可以在以后添加这一点。

If all workflows are the same you can use a single WorkflowServiceHost for each customers and provide the additional information like email address as a startup parameter. However if you think you are going to tweak the worklflows for different client I would create a different host for each specific client. Of course you could always add this later.

这篇关于Windows工作流基础:多个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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