SharePoint 2010对工作流的创建与使用提供了友好的支持,我们有四种选择:
- SharePoint 2010:脱箱(Out-Of-The-Box)工作流
- Visio 2010:可视化工作流,可以导入、导出工作流
- SharePoint Designer 2010:无代码工作流
- Visual Studio 2010:高级、自定义工作流
本次我们使用SharePoint 2010 内置的三态工作流。
- 首先建立一个站点集:
- 创建一个列表,待会使用的工作流就应用于该列表。
2.1、点击【Lists】,再点击【Create】:
2.2、在【List】分类中,选择【Custom List】,输入名称,可以看到这个对话框是用Silverlight做的:
2.3、在【List】选项卡中,点击【Edit in SharePoint Designer】:
2.4、点击【Edit Columns】来自定义列表中的列:
2.5、默认只有一列【Title】,通过点击【Add New Column】来添加一些列:
2.6、添加后的列表如下所示:
其中【Request Status】是重点:
其包含了三种状态:
编辑完列表后点击保存按钮,SharePoint Designer 2010 会将更改持久化到SharePoint 2010中:
- 下面开始正式创建工作流。
3.1、在【List】选项卡中点击【Workflow Settings】:
3.2、点击【Add a workflow】:
3.3、选择三态工作流的内置模板,输入必须的信息,注意勾选【Start a workflow when a new item is create】,点击【Next】:
3.4、对工作流进行配置:
状态配置:
第一个事务:
第二个事务:
注意如果你没有配置出站邮件,则取消【Send e-mail message】的选择。
3.5、点击【OK】即创建了一个三态工作流:
- 应用工作流
4.1、点击【Add new item】,在列表中添加一项:
4.2、输入一些信息,点击【Save】:
4.3、在SharePoint 2010中,工作流与任务息息相关,工作流的每一个状态都会自动创建一个单独的任务:
4.4、通过选择List下拉菜单中的【Workflows】来更改状态:
4.5、再点击对应的工作流:
4.6、在任务中对该请求进行审批:
4.7、输入相关的信息后点击【Save】:
4.8、此时回到列表中,我们可以看到工作流的状态发生了改变:
4.9、以相同的方法直至审批结束:
至此我们就完成了一个很简单的、无代码的三态工作流
分享到:
相关推荐
Professional Workflow in SharePoint 2010 - Real World Business Workflow Solutions
为SharePoint 2010 Workflow 开发 Custom Workflow Activity(Develop Custom Workflow Activity for SharePoint 2010 Workflow). SharePoint2010提供了很多有用的开箱即用的Activity(活动action),我们可以在...
The workflow features in SharePoint are a powerhouse that you should tap into. With the help of this book, you can bring your business processes to life. The primary goal of this book is to teach you ...
Create Sharepoint Site By Template in Code - Workflow Custom Activity sharepoint自动创建站点的脚本/工作流,支持sharepoint designer使用创建动作
in a State Machine Workflow the activities execute based on external events. The state machine responds to an external event, does the required work and then moves to the next state.
一本关于微软Workflow Foundation的入门书。遗憾是英文的。
Windows Workflow Foundation Step By Step.pdf
Beginning WF: Windows Workflow in .NET 4.0 By Mark Collins Publisher: Apress 2010 | 500 Pages | ISBN: 1430224851 | PDF | 4 MB Windows Workflow Foundation is a ground-breaking addition to the core ...
Wrox.Professional.Workflow.in.SharePoint.2010.Real.World.Business.Workflow.Solutions.2012
博文链接:https://eastviking.iteye.com/blog/80150
Begin working with Windows Workflow Foundation to create scalable and durable business services Implement service discovery and message routing Optimize performance with service throttling, encoding, ...
Microsoft Windows Workflow Foundation Step by Step eBook
Workflow sharepoint 实例开发 培训资料
pro wf windows workflow in dot net 3.5pro wf windows workflow in dot net 3.5
介绍windows workflow的技术知识,英文解密版
Getting Started With Workflow Manager Installation Guide
Pro WF: Windows Workflow in .NET 4.0 provides you with the skills you need to incorporate WF in your applications, using a lively tutorial style with each example illustrated in C#. This book gets ...
Beginning WF Windows Workflow in .NET 4.0
Understanding Workflow in Windows SharePoint Services and the 2007 Office System