private function doAutoInsert()
{
if ($this->autoInsert !== false) {
$workflowId = $this->autoInsert === true ? $this->getDefaultWorkflowId() : $this->autoInsert;
$workflow = $this->_wfSource->getWorkflow($workflowId);
if ($workflow !== null) {
$this->setStatusInternal($this->_wfSource->getStatus($workflow->getInitialStatusId()));
} else {
throw new WorkflowException("autoInsert failed - No workflow found for id : " . $workflowId);
}
}
}