function postValidate() { $oWorkflow = $this->_handler->copyTrigger($this->_document); // catch disabled workflows. if (!is_null($oWorkflow) && (PEAR::isError($oWorkflow) || $oWorkflow->getStartStateId() === null)) { return; } $ret = KTWorkflowUtil::changeWorkflowOnDocument($oWorkflow, $this->_document); }