git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/tags/3.7.0.2_original@1 eb19766c-00d9-a042-a3a0-45cb8ec72764
21 lines
489 B
PHP
21 lines
489 B
PHP
<?php
|
|
|
|
require_once('../../config/dmsDefaults.php');
|
|
|
|
require_once(KT_LIB_DIR . '/documentmanagement/Document.inc');
|
|
require_once(KT_LIB_DIR . '/workflow/workflow.inc.php');
|
|
require_once(KT_LIB_DIR . '/workflow/workflowutil.inc.php');
|
|
|
|
$oDocument =& Document::get(4);
|
|
|
|
$res = KTWorkflow::getByDocument($oDocument);
|
|
if (PEAR::isError($res)) {
|
|
print "FAILED\n";
|
|
var_dump($res);
|
|
}
|
|
$iWorkflowId = $res->getId();
|
|
if ($iWorkflowId != 1) {
|
|
print "FAILED\n";
|
|
print $iWorkflowId;
|
|
}
|