HOR-358 "Create a PMFunction to get next derivation info" SOLVED

Issue:
    Create a PMFunction to get next derivation info
Cause:
    Requerimiento de nuevo "PM Function"
Solution:
    Se ha creado la funcion: PMFGetNextDerivationInfo($caseUid, $delIndex)
This commit is contained in:
Victor Saisa Lopez
2016-03-08 16:59:43 -04:00
parent 62e5ebd5c0
commit 14800ae76e
2 changed files with 106 additions and 20 deletions

View File

@@ -297,13 +297,11 @@ class Derivation
//1. There is no rule
if (empty($arrayNextTask)) {
$oProcess = new Process();
$oProcessFieds = $oProcess->Load( $_SESSION['PROCESS'] );
if(isset($oProcessFieds['PRO_BPMN']) && $oProcessFieds['PRO_BPMN'] == 1){
throw new Exception(G::LoadTranslation("ID_NO_DERIVATION_BPMN_RULE"));
}else{
throw new Exception(G::LoadTranslation("ID_NO_DERIVATION_RULE"));
}
$bpmn = new \ProcessMaker\Project\Bpmn();
throw new Exception(G::LoadTranslation(
'ID_NO_DERIVATION_' . (($bpmn->exists($arrayApplicationData['PRO_UID']))? 'BPMN_RULE' : 'RULE')
));
}
//Return