Merge branch 'feature/PMC-877' of bitbucket.org:colosa/processmaker into feature/PMC-877

This commit is contained in:
Julio Cesar Laura Avendaño
2019-07-01 15:16:00 -04:00
11 changed files with 238 additions and 84 deletions

View File

@@ -746,7 +746,13 @@ class Process extends BaseProcess
return $aProcesses;
}
public function getCasesCountForProcess($pro_uid)
/**
* This returns the number of cases for the process.
* @param string $pro_uid
* @return integer
* @see ProcessMaker\Project\Bpmn::canRemove()
*/
public static function getCasesCountForProcess($pro_uid)
{
$oCriteria = new Criteria('workflow');
$oCriteria->addSelectColumn('COUNT(*) AS TOTAL_CASES');