首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >将工作流添加到sitecore 6.5中的现有项中

将工作流添加到sitecore 6.5中的现有项中
EN

Stack Overflow用户
提问于 2012-10-23 13:52:16
回答 1查看 2.9K关注 0票数 4

我正试图在sitecore 6.5中设置工作流。我可以让工作流在从模板创建的新数据项上运行得很好,但是每次我到创建工作流之前存在的数据项时,带状条就会告诉我“该项目目前不是工作流的一部分”。

我已经在默认的Workflow字段和数据项中的Workflow字段中添加了我希望设置的工作流,但是工作流仍然没有被应用。

我不知道如何将新创建的工作流应用于现有数据项。这在塞特罗尔6.5中有可能吗?

EN

回答 1

Stack Overflow用户

发布于 2012-10-24 05:26:41

好的..。所以这一切的关键就是出版。

  • 在标准值上设置默认工作流对已经是工作流一部分的项没有任何影响。这样做只会更改现有项上的“默认工作流”字段,但对已经创建的项没有任何影响。

代码语言:javascript
运行
复制
- If the content that you want to add a workflow to is NOT part of a workflow currently AND that content is currently published, changing the workflow on that the template standard values also has NO EFFECT. The reason is that this is published content and if it were to be put into a workflow when it's already published, it would un-publish it.  Bad news.
- You should not be setting the workflow and workflow state on template standard values... ever.  There is no need for you to do that and as you can see, it has unintended consequences that don't make sense at first.

这是你需要做的。只需在模板标准值上设置默认工作流即可。现在.。如果您有当前发布的内容,您只需创建一个新版本(如果在web.config中设置了该版本,它应该自动为内容作者创建).如果你是管理员,它不会这样做,因为你可以编辑发布的内容),只要他们试图编辑这些项目。只要“默认工作流”字段在创建项目的新版本后仍被设置为“标准值”,它就会根据默认工作流中的内容将新版本放入工作流中。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13032040

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档