当前位置: 代码迷 >> SharePoint >> SharePoint怎么给List自动关联工作流
  详细解决方案

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

热度:235   发布时间:2016-05-02 07:26:48.0
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个方法。 
------解决方案--------------------
楼上大大第一个方法值得一试。
  相关解决方案