将工作流程添加到列表时,无法在主要发布触发器上启用. [英] Cannot enable on major publishing trigger while adding a workflow to list.

查看:110
本文介绍了将工作流程添加到列表时,无法在主要发布触发器上启用.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候!

我的文档库已启用majon和次要版本控制.

My Doc library  is majon and minor versioning enabled.

我已经为所有内容类型创建了SharePoint 2010工作流,并在其中放置了一个.操作使用MyUser在当前项目上开始批准(n)流程",更改了添加以下内容的Sample5.xoml.wfconfig.xml文件:

I've created SharePoint 2010 workflow for all content types, put there a one single  Action "Start Approval(n) process on Current Item with MyUser", changed the  Sample5.xoml.wfconfig.xml file with adding:

<模板BaseID ="{EE9BDE7B-6488-460C-8983-279259897CC9}" DocLibURL =工作流程" TaskContentType ="0x01080100C9C9515DE4E24001905074F980F93160" AllowStartOnMajorCheckin ="true" Category ="List; #ContentType" 名称="Sample5"说明=" StartManually ="true"可见性=公开" LastEditMode ="TextBased"; WFPlatformVersion ="3.5". SupportStageDesign ="false";草稿=假". XomlHref ="Workflows/Sample5/Sample5.xoml". XomlVersion ="V1.0" RulesHref =工作流/Sample5/Sample5.xoml.rules". RulesVersion ="V1.0"/>

<Template BaseID="{EE9BDE7B-6488-460C-8983-279259897CC9}" DocLibURL="Workflows" TaskContentType="0x01080100C9C9515DE4E24001905074F980F93160" AllowStartOnMajorCheckin="true" Category="List;#ContentType" Name="Sample5" Description="" StartManually="true" Visibility="Public" LastEditMode="TextBased" WFPlatformVersion="3.5" SupportStageDesign="false" Draft="false" XomlHref="Workflows/Sample5/Sample5.xoml" XomlVersion="V1.0" RulesHref="Workflows/Sample5/Sample5.xoml.rules" RulesVersion="V1.0"/>

并在元数据"部分:

< InitiationType>手册; #OnNewItem; #OnItemUpdate;#OnMajorCheckIn</InitiationType>

<InitiationType>Manual;#OnNewItem;#OnItemUpdate;#OnMajorCheckIn</InitiationType>

但是我仍然无法选中启动此工作流程来批准发布项目的主要版本"

But i still cannot check "Start this workflow to approve publishing a major version of an item" 

我正在做所有这些事情来创建自定义批准工作流程,但即使是最简单的形式主要启动选项对我不可用.

I'm doing all this to create a custom approval  workflow but even in simplest form like this  main start option is not available for me. 

我错过了什么?

  

  

推荐答案

您可以使用CSOM达到此要求.

You can use the CSOM to achieve this requirement.

这是有关如何设置启动此工作流程以批准使用CSOM发布项目的主要版本"的参考.

This is a reference about how to set Start this workflow to approve publishing a major version of an item using CSOM.

最好的问候,

Carl Zhou

Carl Zhou


这篇关于将工作流程添加到列表时,无法在主要发布触发器上启用.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆