读书人

SharePoint怎么给List自动关联工作流

发布时间: 2013-04-20 19:43:01 作者: rapoo

SharePoint怎样给List自动关联工作流
我现在为了让工作流实现重用,每次都是在部署之后进行手动添加:

SharePoint怎么给List自动关联工作流
我想问一下:能不能在List的 Schema中给他自动绑定,我知道Webpart可以在List的Schema中指定的,不知道工作流可不可以
[解决办法]
没有这种办法的:
There is no default way to associate a Workflow to the List Definition, If you want to do you have to follow one of the following option
1.Write a Feature Receiver and write code to associate the Workflow to the List.
2.Another option is to create a content type and you can associate a workflow to that content Type using feature.

[解决办法]
如果重用, 就做一个工作流模板,或者把你创建的工作流 存储为片段可以其他list里使用。
我们使用的是第2个方法。
[解决办法]
楼上大大第一个方法值得一试。

读书人网 >行业软件

热点推荐