PM-475 "16052 - Revisar problema de self-service con Value-based de grupos" SOLVED

Issue:
    El CasesList es lento cuando existen casos con tipo de asignacion "Self Service Value Based Assignment"
Cause:
    Para todos los casos se esta verificando si su asignacion es de tipo "Self Service Value Based Assignment"
Solution:
    - Se ha creado una nueva tabla "APP_ASSIGN_SELF_SERVICE_VALUE", en la misma se registraran los casos
      con asignacion "Self Service Value Based Assignment"
    - Se ha agregado la opcion "database-generate-self-service-by-value" al comando "./processmaker", para poder
      generar los registros de la nueva tabla.
          Ej: $ ./processmaker database-generate-self-service-by-value myWorkspace
This commit is contained in:
Victor Saisa Lopez
2014-10-27 11:25:17 -04:00
parent d2ba1e188d
commit 80fd2ecd6c
14 changed files with 1723 additions and 61 deletions

View File

@@ -1039,6 +1039,15 @@ class Cases
if ($this->appSolr != null) {
$this->appSolr->updateApplicationSearchIndex($sAppUid);
}
if ($Fields["APP_STATUS"] == "COMPLETED") {
//Delete records of the table APP_ASSIGN_SELF_SERVICE_VALUE
$appAssignSelfServiceValue = new AppAssignSelfServiceValue();
$appAssignSelfServiceValue->remove($sAppUid);
}
//Return
return $Fields;
} catch (exception $e) {
throw ($e);
@@ -1130,6 +1139,11 @@ class Cases
$oCriteria2->add(SubApplicationPeer::APP_PARENT, $sAppUid);
SubApplicationPeer::doDelete($oCriteria2);
//Delete records of the table APP_ASSIGN_SELF_SERVICE_VALUE
$appAssignSelfServiceValue = new AppAssignSelfServiceValue();
$appAssignSelfServiceValue->remove($sAppUid);
//Delete records of the Report Table
$this->reportTableDeleteRecord($sAppUid);
@@ -1193,6 +1207,11 @@ class Cases
if ($this->appSolr != null) {
$this->appSolr->updateApplicationSearchIndex($sAppUid);
}
//Delete record of the table APP_ASSIGN_SELF_SERVICE_VALUE
$appAssignSelfServiceValue = new AppAssignSelfServiceValue();
$appAssignSelfServiceValue->remove($sAppUid, $iDelIndex);
} catch (exception $e) {
throw ($e);
}
@@ -6756,4 +6775,5 @@ class Cases
return $unserializedData;
}
}
}