Right now i’m having a problem with sitecore workflow. The issue is as follows:
my template standard value has set the Workflow and Default Workflow fields set. The workflow state is set to draft. However, everytime i create an item from this template it is not inheriting the workflow section fields, all of them are empty
if i manually set workflow and workflow state for items, it works as expected up to the final state. However, if a content author edits the item, a new version is created but only the workflow field value is kept, while the workflow state is again empty.
what i’m doing wrong? why is this happening? I’m using sitecore 6.5.0
The
__Standard Valuesof your template should only have theDefault workflowfield set; do not set theWorkflowfield on the__Standard Valuesitem as that insinuates that the__Standard Valuesitem is itself in the workflow! Similarly, do not set theStatefield on the__Standard Valuesitem as that is saying that the__Standard Valuesitem is in that state!Your Workflow item has an
Initial Statefield on it that defines the initial state an item will be in (assuming the item uses that workflow).When you create an item, and that item has a
__Standard Valuewith a workflow in theDefault Workflowfield, then that item will have itsWorkflowfield set the same as theDefault Workflowfield of its__Standard Values. The state the item is in will be theInitial Stateas defined on said workflow.