本文介绍了推荐工作流应用程序的设计模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个用户可以执行任务/工作流的应用程序。每个任务由要执行的动作队列组成。我想要能够在工作流程启动后有用户输入。
I am developing an application where the users can execute tasks / workflows. Each task is made up of a queue of actions to be executed. I want to be able to be able to have user input after the workflow is started.
示例:
- 任务启动
- Action1启动
- Action1结束
- Action2开始
- Action2结束
- Action3需要用户输入(UI打开窗口以获取用户输入)
- Action3获取用户输入
- Action3启动
- Action3结束
- Task starts
- Action1 starts
- Action1 ends
- Action2 starts
- Action2 ends
- Action3 needs user input (UI opens window to get user input)
- Action3 gets user input
- Action3 starts
- Action3 ends
我正在开发这个我的C#,我知道Workflow Foundation和任务C#。他们可能有我需要的,但是我也有兴趣听到从头开始的设计模式。
I am developing this i C# and I am aware of Workflow Foundation and tasks in C#. They may have what I need, but I am also interested in hearing about a design pattern for doing this from scratch.
推荐答案您所描述的是顺序工作流模式。
工作流模式计划和 MSDN Magazine 。
更多推荐
推荐工作流应用程序的设计模式
发布评论