HOR-3769
This commit is contained in:
@@ -5,11 +5,11 @@ namespace ProcessMaker\BusinessModel\Cases;
|
||||
use Propel;
|
||||
use StdClass;
|
||||
use G;
|
||||
use Cases;
|
||||
use Cases as ClassesCase;
|
||||
use AppDocument;
|
||||
use Dynaform;
|
||||
use Exception;
|
||||
use Task;
|
||||
use Task as ClassesTask;
|
||||
|
||||
/**
|
||||
* Return the ChangeLog of a Dynaform
|
||||
@@ -166,7 +166,7 @@ class ChangeLog
|
||||
$title = $obj->getDynTitle();
|
||||
break;
|
||||
case 'TASK':
|
||||
$obj = new Task();
|
||||
$obj = new ClassesTask();
|
||||
$obj->load($uid);
|
||||
$title = $obj->getTasTitle();
|
||||
break;
|
||||
@@ -178,7 +178,7 @@ class ChangeLog
|
||||
|
||||
private function loadPermissions($APP_UID, $PRO_UID, $TAS_UID)
|
||||
{
|
||||
$oCase = new Cases();
|
||||
$oCase = new ClassesCases();
|
||||
$this->permissions = $oCase->getAllObjects(
|
||||
$PRO_UID, $APP_UID, $TAS_UID, $_SESSION['USER_LOGGED']
|
||||
);
|
||||
|
||||
@@ -3,7 +3,6 @@ namespace ProcessMaker\BusinessModel;
|
||||
|
||||
use Behat\Behat\Exception\Exception;
|
||||
use \G;
|
||||
use \Cases;
|
||||
use \Criteria;
|
||||
use \ObjectPermissionPeer;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ use BasePeer;
|
||||
use Bootstrap;
|
||||
use Calendar;
|
||||
use CalendarDefinitionPeer;
|
||||
use Cases;
|
||||
use Cases as ClassesCases;
|
||||
use Configurations;
|
||||
use Criteria;
|
||||
use DashletInstancePeer;
|
||||
@@ -1066,7 +1066,7 @@ class User
|
||||
//Verify data
|
||||
$this->throwExceptionIfNotExistsUser($usrUid, $this->arrayFieldNameForException["usrUid"]);
|
||||
|
||||
$oProcessMap = new Cases();
|
||||
$oProcessMap = new ClassesCases();
|
||||
$USR_UID = $usrUid;
|
||||
$total = 0;
|
||||
$history = 0;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<?php
|
||||
namespace ProcessMaker\Project;
|
||||
|
||||
use \Criteria;
|
||||
use Criteria;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
use \ResultSet;
|
||||
use ResultSet;
|
||||
|
||||
use \Process;
|
||||
use \Tasks;
|
||||
use \Task;
|
||||
use \Route;
|
||||
use \RoutePeer;
|
||||
use Process as ClassesProcess;
|
||||
use Tasks;
|
||||
use Task as ClassesTask;
|
||||
use Route;
|
||||
use RoutePeer;
|
||||
|
||||
use ProcessMaker\Util\Common;
|
||||
use ProcessMaker\Exception;
|
||||
@@ -38,7 +38,7 @@ class Workflow extends Handler
|
||||
$me = new self();
|
||||
|
||||
try {
|
||||
$process = new Process();
|
||||
$process = new ClassesProcess();
|
||||
$processData = $process->load($proUid);
|
||||
} catch (\Exception $e) {
|
||||
if (is_null(\ProcessPeer::retrieveByPK($proUid))) {
|
||||
@@ -80,7 +80,7 @@ class Workflow extends Handler
|
||||
}
|
||||
|
||||
// Create project
|
||||
$process = new Process();
|
||||
$process = new ClassesProcess();
|
||||
$this->proUid = $process->create($data, false);
|
||||
|
||||
// Call Plugins
|
||||
@@ -106,7 +106,7 @@ class Workflow extends Handler
|
||||
|
||||
public function update($data)
|
||||
{
|
||||
$process = new Process();
|
||||
$process = new ClassesProcess();
|
||||
$data["PRO_UID"] = $this->getUid();
|
||||
$process->update($data);
|
||||
}
|
||||
@@ -137,7 +137,7 @@ class Workflow extends Handler
|
||||
public static function getList($start = null, $limit = null, $filter = "", $changeCaseTo = CASE_UPPER)
|
||||
{
|
||||
//return Project::getAll($start, $limit, $filter, $changeCaseTo);
|
||||
$process = new Process();
|
||||
$process = new ClassesProcess();
|
||||
$processes = $process->getAllProcesses($start, $limit);
|
||||
//$processes = $process->getAll();
|
||||
|
||||
@@ -182,7 +182,7 @@ class Workflow extends Handler
|
||||
|
||||
try {
|
||||
self::log("Add Task with data: ", $taskData);
|
||||
$task = new Task();
|
||||
$task = new ClassesTask();
|
||||
$tasUid = $task->create($taskData, false);
|
||||
self::log("Add Task Success!");
|
||||
|
||||
@@ -203,7 +203,7 @@ class Workflow extends Handler
|
||||
{
|
||||
try {
|
||||
self::log("Update Task: $tasUid", "With data: ", $taskData);
|
||||
$task = new Task();
|
||||
$task = new ClassesTask();
|
||||
$taskData['TAS_UID'] = $tasUid;
|
||||
$result = $task->update($taskData);
|
||||
self::log("Update Task Success!");
|
||||
@@ -252,7 +252,7 @@ class Workflow extends Handler
|
||||
public function getTask($tasUid)
|
||||
{
|
||||
try {
|
||||
$task = new Task();
|
||||
$task = new ClassesTask();
|
||||
$taskData = $task->load($tasUid);
|
||||
} catch (\Exception $e){
|
||||
$taskData = null;
|
||||
@@ -583,7 +583,7 @@ class Workflow extends Handler
|
||||
try {
|
||||
|
||||
//Instance all classes necesaries
|
||||
$oProcess = new \Process();
|
||||
$oProcess = new ClassesProcess();
|
||||
$oDynaform = new \Dynaform();
|
||||
$oInputDocument = new \InputDocument();
|
||||
$oOutputDocument = new \OutputDocument();
|
||||
|
||||
Reference in New Issue
Block a user