Whats the purpose of Windows Workflow Foundation (WF)?

淺唱寂寞╮ 提交于 2019-12-07 03:27:17

问题


I have read about windows workflow foundation where people use this to model a business process, why not to use UML?

According to some answers, the workflow can be my domain?

What other tools are equivalent to the WF?


回答1:


Workflow foundation is an executable workflow - the framework includes an engine that executes the workflow.

It allows you to write parts of your workflow logic in code.

I suggest reading this developers introduction on MSDN.

UML doesn't do either thing - you can't use code as part of your UML or execute your UML workflows.

UML is intended as a documentation and communication tool.

Workflow Foundation is a software tool that is used for modelling and executing workflows.


Update, regarding suitability for modelling the domain.

Since the core of Workflow Foundation is to model workflows, that is what you should use it for. If you core domain is not workflows, you should model it in a more traditional manner. You can use Workflow Foundation to model the workflows of your model.




回答2:


When a program (process) needs to run for a long time and much of its time is spent waiting (for input, for a timeout, ...) it still consumes memory and CPU time. Windows Workflow Foundation is able to run such a program and swap it out to a persistent store (such as SQL Server) and activate it again when the process should continue.

The designer you are referring to is a nice way to draw the program instead of writing it in C#.

UML is a totally different 'thing' ('beast' if you like) it is a language for analyzing and designing processes and software.




回答3:


Windows Workflow Foundation is an actual runtime - a real, tangible framework for executing long running programs written in C#, targetting the Microsoft CLR.

UML, on the other hand, is just an abstract way to define "programs," on paper, metaphorically speaking. It's quite possible that someone could design a workflow in UML and then have someone do the work to implement it on WWF, i.e. write the actual code, or use a UML to XAML generator.



来源:https://stackoverflow.com/questions/8547325/whats-the-purpose-of-windows-workflow-foundation-wf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!