如何在分布式应用程序中使用.Net WorkFlow 4.0
我们正在开发一个 ERP 分布式应用程序,该应用程序具有 WCF 数据服务服务器和客户端,我们计划使用 WF4.0 进行休假审批流程。休假审批流程如下所述。
员工将通过其 ERP 客户端为其报告人员请求休假。 审批人[报告人员]将收到有关请假的通知。
审批者将通过其 ERP 客户端批准休假请求。 请假申请者将收到有关请假批准的通知。
上述过程应通过单一工作流程进行。 由于我们的应用程序是分布式应用程序,是否可以在不同的 ERP 客户端之间拥有相同的单个工作流对象?
请为完成上述任务提出宝贵意见。
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. Leave approval process will be as explained below.
Employee will request leave for his reporting officer through his ERP Client.
Approver [reporting officer] will get the notification about leave request.Approver will approve the leave request through his ERP Client.
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?
Please provide your valuable ideas to accheive the above task.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以使用持久性 WF 功能来实现此功能:
由于工作流的状态保存到数据库中,并且 WF 提供了丰富的 API 来将工作流实例恢复到某些已保存的状态,因此您可以跨不同层分发工作流。
Yes, you can have this with persistence WF feature:
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.