简体   繁体   English

Windows工作流基础。 我应该用吗?

[英]Windows workflow foundation. Should I use it?

I'm developing an application that I suspect is suitable for using workflow. 我正在开发一个我怀疑适合使用工作流程的应用程序。 (It's easy to visualise the physical workflow and tasks between different users.) (可以很容易地看到不同用户之间的物理工作流程和任务。)

My question is what are the advantages to using this method, do you recommend that I go down this route. 我的问题是使用这种方法有什么好处,你建议我沿着这条路走下去。 Is there a better approach. 有没有更好的方法。

I've heard mention of a hit in performance? 我听说提到了性能上的打击? Is this worth considering? 这值得考虑吗?

Finally, can anyone recommend a good book which is a good introduction to workflow? 最后,任何人都可以推荐一本好书,它是对工作流程的一个很好的介绍?

UPDATE: Brief overview of my solution - In basic terms it's a booking/event/diary system. 更新:我的解决方案的简要概述 - 从基本的角度来说,它是一个预订/事件/日记系统。 A 'model' runs periodically which sets the'rating' of the users (H,M,L). 周期性地运行“模型”,其设置用户的“分配”(H,M,L)。 Depending on the rating depends how often the 'adviser' visits the 'user'. 取决于评级取决于“顾问”访问“用户”的频率。 The requirement is to automate the appointment system, so a 'tentative' appointment is made by the 'model'. 要求是自动化预约系统,因此“模型”进行“暂定”预约。 The application will wait for a response confirming the appointment. 申请将等待确认预约的回复。 Same situation with follow up meetings, etc. Hope this is enough to help. 跟进会议等情况也是如此。希望这足以帮助您。 Basically control passes between the application and the user several times in arranging appointments 基本上控制在安排约会时多次在应用程序和用户之间传递

I'm thinking the event driven model would be the most appropriate here? 我认为事件驱动的模型在这里最合适? Any input appreciated 任何输入赞赏

Thanks 谢谢

@Stuart if your Application has to follow some series of discrete steps (workflow states) you can definitely use Workflow Foundation (WF). @Stuart如果您的应用程序必须遵循一系列离散步骤(工作流状态),您绝对可以使用Workflow Foundation(WF)。 You can keep the flow of the business process separate from the other logic of your application making it loosely coupled and thus easier to modify and enhance. 您可以将业务流程的流程与应用程序的其他逻辑分开,使其松散耦合,从而更易于修改和增强。

If you can simply decide using if-else constructs to decide if flow should move to next step (state) all the steps are traversed linearly then Sequential workflow will be good. 如果您可以简单地决定使用if-else结构来决定流程是否应该移动到下一步(状态),那么所有步骤都将线性遍历,然后Sequential工作流程将会很好。 If you can move from one step to another on occurrence of some event and can literally jump the steps based on the events then State Machine workflow is for you. 如果您可以在发生某些事件时从一个步骤移动到另一个步骤,并且可以根据事件逐步跳转步骤,那么State Machine工作流程就适合您。

I've read Wrox- Professional Windows Workflow Foundation authored by Todd Kitta. 我读过Todd Kitta撰写的Wrox- Professional Windows Workflow Foundation It is a good book to start with. 这是一本好书。 Definetly you can a wealth of information and examples at home of Workflow Foundation at MSDN 毫无疑问,您可以在MSDNWorkflow Foundation主页上获得大量信息和示例

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

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