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:
- Type:
Sitecore.Workflows.Simple.AutoSubmitAction,Sitecore.Kernel
- Role: Your chosen role. This action will be executed only for the users which are in the role (e.g.
sitecore\sitecore client authoring
)
- Next state:
Workflows/Sample Workflow/Draft
Actions are executed automatically.