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

推荐订阅源

T
The Blog of Author Tim Ferriss
S
Securelist
D
Docker
The Register - Security
The Register - Security
GbyAI
GbyAI
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
罗磊的独立博客
博客园 - 【当耐特】
F
Full Disclosure
WordPress大学
WordPress大学
腾讯CDC
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
SecWiki News
SecWiki News
L
Lohrmann on Cybersecurity
I
InfoQ
MyScale Blog
MyScale Blog
量子位
Cyberwarzone
Cyberwarzone
博客园 - 三生石上(FineUI控件)
The Hacker News
The Hacker News
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
博客园_首页
H
Help Net Security
K
Kaspersky official blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Webroot Blog
Webroot Blog
Blog — PlanetScale
Blog — PlanetScale
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
The Cloudflare Blog
P
Proofpoint News Feed
V
Visual Studio Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
爱范儿
爱范儿
P
Privacy International News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog RSS Feed

博客园 - 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 创建网站集的内容类型 创建Infopath表单数据源的详细步骤图解
用Aspx页面做流程表单的一些感想
sumh · 2009-07-17 · via 博客园 - sumh

参照KB的视频,了解了流程表单与流程的关联。详细资料地址

下面具体说一下操作过程的API和Aspx表单与infopath表单的区别.

表单是基于业务流程的规则创建的

aspx表单与infopath表单不一样. infopath提供了所见即所得的页面做ui页面, aspx表单是用自定义页面做ui页面,

aspx表单抽象层次比较低,所以你容易理解表单数据如何流向工作流,

 数据流向是从表单流向宿主页面(IniWrkflIP.aspx),调用sharepoint的方法StartWorkflow ------------       site.WorkflowManager.StartWorkflow(SPListItem item,SPWorkflowAssociation wf,String EventData),该表单必须是Infopath表单.

SPListItem item 是启动流程的Item,

SPWorkflowAssociation wf是新建流程实例的关联类.(流程的模板)

String EventData是流程的初始化表单数据.

aspx表单你必须先创建一个aspxUI,aspx页面中写代码调用工作流的方法和注册到其他页面中.

Aspx表单是标准的aspx页面.

如果你熟悉该技术,那么可以添加控件来收集非工作流页面的流程数据.你可以在页面中实现你需要的操作和验证. aspx页面中写代码调用工作流的方法和注册到其他页面中唯一的一件事情是指定具体的工作流,用户点击提交按钮,需要调用下来的方法:

在关联表单中调用:SPWorkflowAssociation.CreateListAssociation(SPWorkflowTemplate WorkflowTemplate,String WorkflowAssociationName,SPList taskList,SPList historyList).然后把关联表单的数据添加到流程的列表中.调用List.AddWorkflowAssociation(SPWorkflowAssociation workflowAssociation).

在初始化表单中调用:SPWorkflowManager.StartWorkflow (SPListItem item,SPWorkflowAssociation association,
 
string eventData).

在任务表单中调用:SPWorkflowTask.AlterTask(SPListItem task,Hashtable htData, bool fSynchronous)

在修改表单中调用:SPWorkflowManager.ModifyWorkflow (SPWorkflow workflow,SPWorkflowModification modification,string contextData)

用户通过参数调用这些方法来收集数据,或者用其他的SharePoint对象模型和页面的参数来收集这些信息。

然后你就可以在任何需要该流程的地方调用该流程,例如重定向或者是更改页面时。