I solved the issue PM-140 and PM-1547

This commit is contained in:
Paula V. Quispe
2015-02-13 14:57:00 -04:00
parent cb54201594
commit 3ac5fdf9ba
2 changed files with 18 additions and 2 deletions

View File

@@ -240,7 +240,14 @@ class Derivation
//1. There is no rule
if (count($arrayNextTask) == 0) {
throw new Exception(G::LoadTranslation("ID_NO_DERIVATION_RULE"));
$c = new Criteria("workflow");
$c->add(BpmnProcessPeer::PRJ_UID, $_SESSION['PROCESS']);
$res = BpmnProcessPeer::doSelect($c);
if( sizeof($res) == 0 ){
throw new Exception(G::LoadTranslation("ID_NO_DERIVATION_RULE"));
}else{
throw new Exception(G::LoadTranslation("ID_NO_DERIVATION_BPMN_RULE"));
}
}
//Return