项目批准 [英] Item Approval

查看:78
本文介绍了项目批准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我需要将工作流程应用于现有的.Net C#Web窗体应用程序。任何人都可以指向一个功能齐全的示例吗?

I need to apply a workflow to an existing .Net C# Web Forms application. Can anyone point me in the direction of a fully functional example?

我不确定我是否需要顺序或状态机。总之,这就是我需要工作流程来做的事情:

I'm not sure whether I need sequential or state machine. In summary this is what I need the workflow to do:

-  新项目通过网络表单添加到数据库表中$
- 然后给协调员发电子邮件

- 协调员然后分配其他用户

- 他们收到电子邮件

- 他们提供回复(如果不是那么工作流程)需要发送提醒电子邮件)

- 协调员可以随时完成/完成工作流程

- a new item gets added to a database table via a web form
- this then emails a coordinator
- the coordinator then assigns other users
- they get emailed
- they provide a response (if not then the workflow needs to send them reminder emails)
- the coordinator can complete / finish the workflow at any time

谢谢

推荐答案

您可以使用顺序或状态机来执行此操作。既然你要为其他用户分配一个任务(并行?,它会向几个用户发送,然后等待,并向这些人发送提醒)顺序工作流程会更简单一点(你可以等待多个用户到
)在状态机中提交任务但在顺序工作流程中更容易。

You could do this with a sequential or a state machine. Since you are assigning other users a task (in parallel?, it goes out to several users and then waits, and sends reminders to these folks) a Sequential workflow would be a little simpler (you could wait for multiple users to submit a task in a state machine but it is easier in a Sequential workflow.

我不知道完整的函数示例,它说明了所有这些部分。

I don't know of a fully functionl sample that illustrates all these parts though.

那么工作流程是从Web表单开始的吗?它将一个新项目添加到数据库表中,然后启动工作流程?

So the workflow is kicked off from the web form? It adds a new item to a database table and then starts the workflow?

工作流程可以使用自定义活动给协调员发电子邮件。( SendMail自定义活动样本

The workflow could use a custom activity to email the coordinator. (SendMail custom activity sample)

协调员可以分配用户,并通过基于事件的活动将此用户列表分发到工作流程中(工作流程/主机通信

The coordinator could assign users, and dispatch this list of users to the workflow via an event based activity (workflow/host communications)

主机可以使用
复制器活动
为每个用户执行以下操作:发送电子邮件,让他们知道他们的输入是需要,等待回复。您可以使用
听取活动(或$ b) $ b EventDriven活动)等待回复或超时间隔可以发送电子邮件以提醒他们需要输入。

The host could use a replicator activity to perform the following for each user: Send an email letting them know that their input is needed, and wait for the reply. You can use a Listen Activity (or an EventDriven activity) to wait for either the reply or a timeout interval that could send an email to remind them that their input is needed.

侦听用户批准的部分可以进入
ConditionedActivityGroup
,如果协调员希望在所有批准之前完成工作流程,则可以取消所有这些。

The part that listens for the user approvals could go into a ConditionedActivityGroup, which coould cancel all of that if the coordinator wishes to complete the workflow before all approvals are in.

转到此页面查看一些有用的信息,以及一些可以引导您完成大部分功能的lavs:

http://msdn.microsoft.com/en-us/netframework/first-steps-with -wf.aspx #content3x

Go to this page to see some good info, along with some hands on lavs that will walk you through most of these features: http://msdn.microsoft.com/en-us/netframework/first-steps-with-wf.aspx#content3x

如果你不依赖于.NET 3.5 Work流,有一个较新的.NET 4工作流,如下所述:

http://msdn.microsoft.com/en-us/netframework/first-steps-with-wf.aspx#content4

If you are not tied to .NET 3.5 Workflow, there is a newer .NET 4 Workflow, described here: http://msdn.microsoft.com/en-us/netframework/first-steps-with-wf.aspx#content4

请回复返回更多信息,我可以深入了解更多细节。

Please reply back with more information and I can drill down into greater detail.

谢谢,

Steve Danielson [微软]

该帖子是"按原样"提供的。没有保证,也没有授予任何权利。

使用包含的脚本样本须遵守
http://www.microsoft.com/info/cpyright.htm

Steve Danielson [Microsoft]
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm


这篇关于项目批准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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