Changes 3 and 4 of the google sheet
This commit is contained in:
@@ -7,7 +7,7 @@ use CasesPeer;
|
||||
use AppDelegation;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
use Exception;
|
||||
use wsBase;
|
||||
use WsBase;
|
||||
use RBAC;
|
||||
|
||||
/**
|
||||
@@ -466,7 +466,7 @@ class Cases
|
||||
if (!isset($row)) {
|
||||
continue;
|
||||
}
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
$fields = $ws->getCaseInfo($applicationUid, $row["DEL_INDEX"]);
|
||||
$array = json_decode(json_encode($fields), true);
|
||||
if ($array ["status_code"] != 0) {
|
||||
@@ -533,7 +533,7 @@ class Cases
|
||||
throw (new Exception($arrayData));
|
||||
}
|
||||
} else {
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
$fields = $ws->getCaseInfo($applicationUid, 0);
|
||||
$array = json_decode(json_encode($fields), true);
|
||||
|
||||
@@ -679,7 +679,7 @@ class Cases
|
||||
{
|
||||
try {
|
||||
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
if ($variables) {
|
||||
$variables = array_shift($variables);
|
||||
}
|
||||
@@ -723,7 +723,7 @@ class Cases
|
||||
{
|
||||
try {
|
||||
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
if ($variables) {
|
||||
$variables = array_shift($variables);
|
||||
} elseif ($variables == null) {
|
||||
@@ -778,7 +778,7 @@ class Cases
|
||||
$delIndex = AppDelegation::getCurrentIndex($applicationUid);
|
||||
}
|
||||
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
$fields = $ws->reassignCase($userUid, $applicationUid, $delIndex, $userUidSource, $userUidTarget);
|
||||
$array = json_decode(json_encode($fields), true);
|
||||
if (array_key_exists("status_code", $array)) {
|
||||
@@ -1009,7 +1009,7 @@ class Cases
|
||||
$RBAC->sSystem = 'PROCESSMAKER';
|
||||
}
|
||||
|
||||
$case = new wsBase();
|
||||
$case = new WsBase();
|
||||
$result = $case->executeTrigger($userUid, $appUid, $triUid, $delIndex);
|
||||
|
||||
if ($result->status_code != 0) {
|
||||
@@ -1076,7 +1076,7 @@ class Cases
|
||||
}
|
||||
}
|
||||
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
$fields = $ws->derivateCase($userUid, $applicationUid, $delIndex, $bExecuteTriggersBeforeAssignment = false);
|
||||
$array = json_decode(json_encode($fields), true);
|
||||
if ($array ["status_code"] != 0) {
|
||||
|
||||
@@ -701,7 +701,7 @@ class InputDocument
|
||||
throw new \Exception(\G::LoadTranslation("ID_CASES_INPUT_DOES_NOT_EXIST", array($inputDocumentUid)));
|
||||
}
|
||||
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$ws->removeDocument($inputDocumentUid);
|
||||
} catch (\Exception $e) {
|
||||
throw $e;
|
||||
|
||||
@@ -69,7 +69,7 @@ class Consolidated
|
||||
*/
|
||||
public function postDerivate($app_uid, $app_number, $del_index, $usr_uid, $fieldName = '', $fieldValue = '')
|
||||
{
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$oCase = new \Cases();
|
||||
|
||||
if (!isset($Fields["DEL_INIT_DATE"])) {
|
||||
|
||||
@@ -524,7 +524,7 @@ class Light
|
||||
$delIndex = \AppDelegation::getCurrentIndex($applicationUid);
|
||||
}
|
||||
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$fields = $ws->derivateCase($userUid, $applicationUid, $delIndex, $bExecuteTriggersBeforeAssignment = false, $tasks);
|
||||
$array = json_decode(json_encode($fields), true);
|
||||
$array['message'] = trim(strip_tags($array['message']));
|
||||
|
||||
@@ -368,7 +368,7 @@ class MessageApplication
|
||||
try {
|
||||
|
||||
//Set variables
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$case = new \Cases();
|
||||
$common = new \ProcessMaker\Util\Common();
|
||||
$sysSys = (defined("SYS_SYS"))? SYS_SYS : "Undefined";
|
||||
|
||||
@@ -357,7 +357,7 @@ class Pmgmail {
|
||||
return false;
|
||||
}
|
||||
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$resultMail = $ws->sendMessage(
|
||||
$application['APP_UID'],
|
||||
$defaultEmail, //From,
|
||||
|
||||
@@ -1211,7 +1211,7 @@ class TimerEvent
|
||||
try {
|
||||
|
||||
//Set variables
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$case = new \Cases();
|
||||
$common = new \ProcessMaker\Util\Common();
|
||||
$sysSys = (defined("SYS_SYS"))? SYS_SYS : "Undefined";
|
||||
|
||||
Reference in New Issue
Block a user