Sitecore Workflow __OnSave Command

。_饼干妹妹 提交于 2019-12-11 02:16:31

问题


I'm updating workflow process in Sitecore. As shown in the screenshot, I added "__OnSave" command under Approval state. I guess it means when user saves the item in Approval state, the state will change to Draft state.

But, it is still in Approval state after saving. What is the issue??


回答1:


Actually __OnSave is a command, not an action. I'm not sure if Next State of this command is used at all. You need to click on the command button to execute the command, and __OnSave button is hidden by default.

What you need is another item under your __OnSave item using Auto Submit Action template with properties:

  1. Type: Sitecore.Workflows.Simple.AutoSubmitAction,Sitecore.Kernel
  2. Role: Your chosen role. This action will be executed only for the users which are in the role (e.g. sitecore\sitecore client authoring)
  3. Next state: Workflows/Sample Workflow/Draft

Actions are executed automatically.



来源:https://stackoverflow.com/questions/29259037/sitecore-workflow-onsave-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!