简体   繁体   English

如何在分布式应用程序中使用.Net WorkFlow 4.0

[英]How to use .Net WorkFlow 4.0 in distributed application

We are developing an ERP distributed application which is having WCF Data service server and client, where we planned to use WF4.0 for the leave approval process. 我们正在开发具有WCF数据服务服务器和客户端的ERP分布式应用程序,我们计划在其中使用WF4.0进行请假批准过程。 Leave approval process will be as explained below. 休假批准流程将如下所述。

  • Employee will request leave for his reporting officer through his ERP Client. 员工将通过其ERP客户请求其报告干事休假。 Approver [reporting officer] will get the notification about leave request. 批准者[报告员]将收到有关请假请求的通知。

  • Approver will approve the leave request through his ERP Client. 批准者将通过其ERP客户批准请假请求。 Leave requester will get the notification about leave approval. 请假申请者将收到有关请假批准的通知。

The process mentioned above should happen through single work flow. 上述过程应通过单个工作流程进行。 Since ours is distributed application, is it possible to have same single work flow object across different ERP Clients? 由于我们是分布式应用程序,因此在不同的ERP客户端之间是否可以有相同的单一工作流程对象?

Please provide your valuable ideas to accheive the above task. 请提供您宝贵的想法来完成上述任务。

Yes, you can have this with persistence WF feature: 是的,您可以通过持久性WF功能实现此功能:

As workflows' state is saved into a database and WF provides a rich API to restore a workflow instance to some saved state, you can distribute a workflow across different tiers. 由于工作流的状态已保存到数据库中,并且WF提供了丰富的API将工作流实例还原到某些已保存状态,因此您可以将工作流分配到不同的层。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM