At my work, we use Sitecore 7.2. We have two forms online that turn submissions into items in the sitecore tree. These items need to be reviewed/edited by an editor before being dragged from a "submission" folder into a folder that displays on the live site.
The issue we were originally having is that these items were not part of a workflow. So if an edit was made to them, a publihing job wasn't triggered. I created a simple workflow that any edit/save automatically approves and publishes an item.
I applied it to the standard values field for both template A and template B. When creating new items with template A (whether through the form submission or manually) the item is created and the workflow is attached.
However, with template B, the workflow is never attached. if I manually added the default workflow to the item itself it works fine - but I need it to already be added in when the item is created - or when a new version of the item is created.
Is there any reason why a "Default Workflow" added into the "__Standard Values" of a item template would not be part of items using that template?
This is the same issue I got last time. Some people said it works correctly even we update workflow into existing items, but it doesn't work for some others.
The problem is that even you set the default workflow in standard values, "Workflow" and "State" fields are empty in item's properties. So, what I did is using PowerShell plug-in. If you use this below code, it would work perfectly.