惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
The Register - Security
The Register - Security
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
P
Proofpoint News Feed
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
The Last Watchdog
The Last Watchdog
F
Fortinet All Blogs
S
Schneier on Security
Help Net Security
Help Net Security
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
I
InfoQ
T
The Blog of Author Tim Ferriss
Cisco Talos Blog
Cisco Talos Blog
Stack Overflow Blog
Stack Overflow Blog
T
Troy Hunt's Blog
人人都是产品经理
人人都是产品经理
T
Threatpost
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cyber Attacks, Cyber Crime and Cyber Security
雷峰网
雷峰网
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
Forbes - Security
Forbes - Security
Vercel News
Vercel News
S
Security Affairs
美团技术团队
P
Privacy & Cybersecurity Law Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Jina AI
Jina AI
Spread Privacy
Spread Privacy
Attack and Defense Labs
Attack and Defense Labs
IT之家
IT之家
U
Unit 42
Recorded Future
Recorded Future
W
WeLiveSecurity
PCI Perspectives
PCI Perspectives
P
Palo Alto Networks Blog
H
Hacker News: Front Page
S
Security @ Cisco Blogs
博客园 - 【当耐特】

博客园 - sumh

用Openxml获取本地文件的扩展信息 用PowerShell批量删除未部署的wsp包 用PowerShell批量收回wsp包 用PowerShell批量部署wsp包 WSS3.0升级到Foundation 2010 PowerShell 操作bcs PowerShell搜索元数据 开发,部署,监视SharePoint 2010的沙盒解决方案 修改MOSS的RTF字段的上传图片功能 高权限的工作流 可重用声明性工作流 站点工作流 可插接式的工作流服务 sharepoint 2010 beta Workflow WF4的新功能 介绍WF4 用Aspx页面做流程表单的一些感想 创建网站集的内容类型 创建Infopath表单数据源的详细步骤图解
工作流事件
sumh · 2010-04-16 · via 博客园 - sumh
 

wf3只创建了响应数量有限的事件. Sharepoint 功能上,工作流程可与更多的事件交互,还提供了创建自定义事件和事件事件接收器.

WF3中流程只能响应围绕着他们的事件,不能发出自己的事件,去监听其他事件接受器。

这就意味着一个工作流不能监听其他工作流,而其他事件也不能获取工作流的错误信息。

但在很多实例中,这种行为是很有用的。

例如,工作流可以发起其他工作流,那么开发人员就可以在审批流程的末尾添加一步骤,启动其他流程。

这种功能可使流程模块化,重用现有的代码。

将前事件处理程序添加到工作流事件中可以帮助开发人员添加验证以防架构或系列化错误出现时启动了流程,为管理员提供监听流程出错的机制。

除了添加一些事件,开发人员还可以创建自定义事件和事件接收器来处理特殊情况。

SharePoint Foundation 中开发人员可以采用对象模型或SharePoint 事件创建工作流的事件处理程序。

开发人员可以编写调用其它工作流并等待流程完成的程序。

开发人员可通过插入代码的形式更新正在运行的流程。

SharePoint Foundation 发出的流程事件:

  • WorkflowStarting
  • WorkflowStarted
  • WorkflowCompleted 
  • WorkflowLoading
  • WorkflowUnloading 
  • WorkflowPostponed

可通过SPWebSPListSPContentType注册工作流事件接收器,开发人员可以添加接收器到SPSite

SPWeb:监听运行在站点中的工作流事件,包括站点工作流。

SPList:监听运行在列表的Item中的工作流事件。

SPContentType:监听内容类型事件接收器只在文档库内容类型触发工作流,所产生的事件。

开发工作流事件接收器可重写SPWorkflowEventReceiver类和接口来实现。

通过标准SharePoint事件接收器的对象模型来注册工作流事件接收器。