推荐工作流应用程序的设计模式 [英] Recommend a design pattern for a workflow application

查看:141
本文介绍了推荐工作流应用程序的设计模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个用户可以执行任务/工作流的应用程序。每个任务由要执行的动作队列组成。我想要能够在工作流程启动后有用户输入。

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.

      推荐答案

      您所描述的是顺序工作流模式

      工作流模式计划和< a href =http://msdn.microsoft.com/en-us/magazine/ee294452.aspx =nofollow> MSDN Magazine 。

      这篇关于推荐工作流应用程序的设计模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆