我正试图在sitecore 6.5中设置工作流。我可以让工作流在从模板创建的新数据项上运行得很好,但是每次我到创建工作流之前存在的数据项时,带状条就会告诉我“该项目目前不是工作流的一部分”。
我已经在默认的Workflow字段和数据项中的Workflow字段中添加了我希望设置的工作流,但是工作流仍然没有被应用。
我不知道如何将新创建的工作流应用于现有数据项。这在塞特罗尔6.5中有可能吗?
发布于 2012-10-24 05:26:41
好的..。所以这一切的关键就是出版。
- 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中设置了该版本,它应该自动为内容作者创建).如果你是管理员,它不会这样做,因为你可以编辑发布的内容),只要他们试图编辑这些项目。只要“默认工作流”字段在创建项目的新版本后仍被设置为“标准值”,它就会根据默认工作流中的内容将新版本放入工作流中。
https://stackoverflow.com/questions/13032040
复制相似问题