Refactoring of classes that where in workflow/engine/src , now all of them have a unique parent namespace \ProcessMaker
This commit is contained in:
@@ -142,13 +142,13 @@ class WebApplication
|
|||||||
header('Access-Control-Allow-Origin: *');
|
header('Access-Control-Allow-Origin: *');
|
||||||
|
|
||||||
// $servicesDir contains directory where Services Classes are allocated
|
// $servicesDir contains directory where Services Classes are allocated
|
||||||
$servicesDir = $this->workflowDir . 'engine' . DS . 'src' . DS . 'Services' . DS;
|
$servicesDir = $this->workflowDir . 'engine' . DS . 'src' . DS . 'ProcessMaker' . DS . 'Services' . DS;
|
||||||
// $apiDir - contains directory to scan classes and add them to Restler
|
// $apiDir - contains directory to scan classes and add them to Restler
|
||||||
$apiDir = $servicesDir . 'Api' . DS;
|
$apiDir = $servicesDir . 'Api' . DS;
|
||||||
// $apiIniFile - contains file name of api ini configuration
|
// $apiIniFile - contains file name of api ini configuration
|
||||||
$apiIniFile = $servicesDir . DS . 'api.ini';
|
$apiIniFile = $servicesDir . DS . 'api.ini';
|
||||||
// $authenticationClass - contains the class name that validate the authentication for Restler
|
// $authenticationClass - contains the class name that validate the authentication for Restler
|
||||||
$authenticationClass = 'Services\\Api\\OAuth2\\Server';
|
$authenticationClass = 'ProcessMaker\\Services\\OAuth2\\Server';
|
||||||
// $pmOauthClientId - contains PM Local OAuth Id (Web Designer)
|
// $pmOauthClientId - contains PM Local OAuth Id (Web Designer)
|
||||||
$pmOauthClientId = 'x-pm-local-client';
|
$pmOauthClientId = 'x-pm-local-client';
|
||||||
|
|
||||||
@@ -179,10 +179,10 @@ class WebApplication
|
|||||||
// Setting database connection source
|
// Setting database connection source
|
||||||
list($host, $port) = strpos(DB_HOST, ':') !== false ? explode(':', DB_HOST) : array(DB_HOST, '');
|
list($host, $port) = strpos(DB_HOST, ':') !== false ? explode(':', DB_HOST) : array(DB_HOST, '');
|
||||||
$port = empty($port) ? '' : ";port=$port";
|
$port = empty($port) ? '' : ";port=$port";
|
||||||
\Services\Api\OAuth2\Server::setDatabaseSource(DB_USER, DB_PASS, DB_ADAPTER.":host=$host;dbname=".DB_NAME.$port);
|
\ProcessMaker\Services\OAuth2\Server::setDatabaseSource(DB_USER, DB_PASS, DB_ADAPTER.":host=$host;dbname=".DB_NAME.$port);
|
||||||
|
|
||||||
// Setting default OAuth Client id, for local PM Web Designer
|
// Setting default OAuth Client id, for local PM Web Designer
|
||||||
\Services\Api\OAuth2\Server::setPmClientId($pmOauthClientId);
|
\ProcessMaker\Services\OAuth2\Server::setPmClientId($pmOauthClientId);
|
||||||
|
|
||||||
require_once $this->workflowDir . "engine/src/Extension/Restler/UploadFormat.php";
|
require_once $this->workflowDir . "engine/src/Extension/Restler/UploadFormat.php";
|
||||||
//require_once PATH_CORE
|
//require_once PATH_CORE
|
||||||
@@ -212,17 +212,18 @@ class WebApplication
|
|||||||
|
|
||||||
foreach ($classesList as $classFile) {
|
foreach ($classesList as $classFile) {
|
||||||
if (pathinfo($classFile, PATHINFO_EXTENSION) === 'php') {
|
if (pathinfo($classFile, PATHINFO_EXTENSION) === 'php') {
|
||||||
$namespace = '\\Services\\' . str_replace(
|
$namespace = '\\ProcessMaker\\Services\\' . str_replace(
|
||||||
DIRECTORY_SEPARATOR,
|
DIRECTORY_SEPARATOR,
|
||||||
'\\',
|
'\\',
|
||||||
str_replace('.php', '', str_replace($servicesDir, '', $classFile))
|
str_replace('.php', '', str_replace($servicesDir, '', $classFile))
|
||||||
);
|
);
|
||||||
//var_dump($namespace);
|
//var_dump($namespace); die;
|
||||||
$rest->addAPIClass($namespace);
|
$rest->addAPIClass($namespace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// adding aliases for Restler
|
// adding aliases for Restler
|
||||||
|
//print_r($apiIniConf);
|
||||||
if (array_key_exists('alias', $apiIniConf)) {
|
if (array_key_exists('alias', $apiIniConf)) {
|
||||||
foreach ($apiIniConf['alias'] as $alias => $aliasData) {
|
foreach ($apiIniConf['alias'] as $alias => $aliasData) {
|
||||||
if (is_array($aliasData)) {
|
if (is_array($aliasData)) {
|
||||||
|
|||||||
@@ -78,16 +78,16 @@ class Designer extends Controller
|
|||||||
|
|
||||||
protected function getClientCredentials()
|
protected function getClientCredentials()
|
||||||
{
|
{
|
||||||
$oauthQuery = new Services\Api\OAuth2\PmPdo($this->getDsn());
|
$oauthQuery = new ProcessMaker\Services\OAuth2\PmPdo($this->getDsn());
|
||||||
return $oauthQuery->getClientDetails($this->clientId);
|
return $oauthQuery->getClientDetails($this->clientId);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getAuthorizationCode($client)
|
protected function getAuthorizationCode($client)
|
||||||
{
|
{
|
||||||
\Services\Api\OAuth2\Server::setDatabaseSource($this->getDsn());
|
\ProcessMaker\Services\OAuth2\Server::setDatabaseSource($this->getDsn());
|
||||||
\Services\Api\OAuth2\Server::setPmClientId($client['CLIENT_ID']);
|
\ProcessMaker\Services\OAuth2\Server::setPmClientId($client['CLIENT_ID']);
|
||||||
|
|
||||||
$oauthServer = new \Services\Api\OAuth2\Server();
|
$oauthServer = new \ProcessMaker\Services\OAuth2\Server();
|
||||||
$userId = $_SESSION['USER_LOGGED'];
|
$userId = $_SESSION['USER_LOGGED'];
|
||||||
$authorize = true;
|
$authorize = true;
|
||||||
$_GET = array_merge($_GET, array(
|
$_GET = array_merge($_GET, array(
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
class Calendar
|
class Calendar
|
||||||
{
|
{
|
||||||
@@ -267,7 +267,7 @@ class Calendar
|
|||||||
unset($arrayData["CAL_UID"]);
|
unset($arrayData["CAL_UID"]);
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, true);
|
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, true);
|
||||||
|
|
||||||
@@ -364,7 +364,7 @@ class Calendar
|
|||||||
$arrayData = \G::array_change_key_case2($arrayData, CASE_UPPER);
|
$arrayData = \G::array_change_key_case2($arrayData, CASE_UPPER);
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$this->throwExceptionIfNotExistsCalendar($calendarUid, $this->arrayFieldNameForException["calendarUid"]);
|
$this->throwExceptionIfNotExistsCalendar($calendarUid, $this->arrayFieldNameForException["calendarUid"]);
|
||||||
|
|
||||||
@@ -576,7 +576,7 @@ class Calendar
|
|||||||
$arrayCalendar = array();
|
$arrayCalendar = array();
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfDataNotMetPagerVarDefinition(array("start" => $start, "limit" => $limit), $this->arrayFieldNameForException);
|
$process->throwExceptionIfDataNotMetPagerVarDefinition(array("start" => $start, "limit" => $limit), $this->arrayFieldNameForException);
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
|
|
||||||
@@ -245,7 +245,7 @@ class CaseScheduler
|
|||||||
public function addCaseScheduler($sProcessUID, $aData, $userUID)
|
public function addCaseScheduler($sProcessUID, $aData, $userUID)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
require_once (PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes". PATH_SEP . "model" . PATH_SEP . "CaseScheduler.php");
|
require_once(PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "CaseScheduler.php");
|
||||||
$aData['sch_repeat_stop_if_running'] = '0';
|
$aData['sch_repeat_stop_if_running'] = '0';
|
||||||
$aData['case_sh_plugin_uid'] = null;
|
$aData['case_sh_plugin_uid'] = null;
|
||||||
$aData = array_change_key_case($aData, CASE_UPPER);
|
$aData = array_change_key_case($aData, CASE_UPPER);
|
||||||
@@ -530,7 +530,7 @@ class CaseScheduler
|
|||||||
public function updateCaseScheduler($sProcessUID, $aData, $userUID, $sSchUID = '')
|
public function updateCaseScheduler($sProcessUID, $aData, $userUID, $sSchUID = '')
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
require_once (PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes". PATH_SEP . "model" . PATH_SEP . "CaseScheduler.php");
|
require_once(PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "CaseScheduler.php");
|
||||||
$aData = array_change_key_case($aData, CASE_UPPER);
|
$aData = array_change_key_case($aData, CASE_UPPER);
|
||||||
if (empty( $aData )) {
|
if (empty( $aData )) {
|
||||||
die( 'The information sended is empty!' );
|
die( 'The information sended is empty!' );
|
||||||
@@ -827,7 +827,7 @@ class CaseScheduler
|
|||||||
public function deleteCaseScheduler($sSchUID)
|
public function deleteCaseScheduler($sSchUID)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
require_once (PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes". PATH_SEP . "model" . PATH_SEP . "CaseScheduler.php");
|
require_once(PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "CaseScheduler.php");
|
||||||
$oCaseScheduler = new \CaseScheduler();
|
$oCaseScheduler = new \CaseScheduler();
|
||||||
if (!isset($sSchUID)) {
|
if (!isset($sSchUID)) {
|
||||||
return;
|
return;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
class CaseTracker
|
class CaseTracker
|
||||||
{
|
{
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
class CaseTrackerObject
|
class CaseTrackerObject
|
||||||
{
|
{
|
||||||
@@ -81,7 +81,7 @@ class CaseTrackerObject
|
|||||||
throw (new \Exception(str_replace(array("{0}"), array(strtolower("CTO_UID_OBJ")), "The \"{0}\" attribute is not defined")));
|
throw (new \Exception(str_replace(array("{0}"), array(strtolower("CTO_UID_OBJ")), "The \"{0}\" attribute is not defined")));
|
||||||
}
|
}
|
||||||
|
|
||||||
$step = new \BusinessModel\Step();
|
$step = new \ProcessMaker\BusinessModel\Step();
|
||||||
|
|
||||||
$msg = $step->existsObjectUid($arrayData["CTO_TYPE_OBJ"], $arrayData["CTO_UID_OBJ"]);
|
$msg = $step->existsObjectUid($arrayData["CTO_TYPE_OBJ"], $arrayData["CTO_UID_OBJ"]);
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ class CaseTrackerObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($arrayData["CTO_TYPE_OBJ"]) && isset($arrayData["CTO_UID_OBJ"])) {
|
if (isset($arrayData["CTO_TYPE_OBJ"]) && isset($arrayData["CTO_UID_OBJ"])) {
|
||||||
$step = new \BusinessModel\Step();
|
$step = new \ProcessMaker\BusinessModel\Step();
|
||||||
|
|
||||||
$msg = $step->existsObjectUid($arrayData["CTO_TYPE_OBJ"], $arrayData["CTO_UID_OBJ"]);
|
$msg = $step->existsObjectUid($arrayData["CTO_TYPE_OBJ"], $arrayData["CTO_UID_OBJ"]);
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
use \UsersPeer;
|
use \UsersPeer;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel\Cases;
|
namespace ProcessMaker\BusinessModel\Cases;
|
||||||
|
|
||||||
class InputDocument
|
class InputDocument
|
||||||
{
|
{
|
||||||
@@ -21,7 +21,7 @@ class InputDocument
|
|||||||
$fields = $oCase->loadCase( $sApplicationUID );
|
$fields = $oCase->loadCase( $sApplicationUID );
|
||||||
$sProcessUID = $fields['PRO_UID'];
|
$sProcessUID = $fields['PRO_UID'];
|
||||||
$sTaskUID = '';
|
$sTaskUID = '';
|
||||||
$oCaseRest = new \BusinessModel\Cases();
|
$oCaseRest = new \ProcessMaker\BusinessModel\Cases();
|
||||||
$oCaseRest->getAllUploadedDocumentsCriteria( $sProcessUID, $sApplicationUID, $sTaskUID, $sUserUID);
|
$oCaseRest->getAllUploadedDocumentsCriteria( $sProcessUID, $sApplicationUID, $sTaskUID, $sUserUID);
|
||||||
$result = array ();
|
$result = array ();
|
||||||
global $_DBArray;
|
global $_DBArray;
|
||||||
@@ -65,7 +65,7 @@ class InputDocument
|
|||||||
$fields = $oCase->loadCase( $sApplicationUID );
|
$fields = $oCase->loadCase( $sApplicationUID );
|
||||||
$sProcessUID = $fields['PRO_UID'];
|
$sProcessUID = $fields['PRO_UID'];
|
||||||
$sTaskUID = '';
|
$sTaskUID = '';
|
||||||
$oCaseRest = new \BusinessModel\Cases();
|
$oCaseRest = new \ProcessMaker\BusinessModel\Cases();
|
||||||
$oCaseRest->getAllUploadedDocumentsCriteria( $sProcessUID, $sApplicationUID, $sTaskUID, $sUserUID );
|
$oCaseRest->getAllUploadedDocumentsCriteria( $sProcessUID, $sApplicationUID, $sTaskUID, $sUserUID );
|
||||||
$result = array ();
|
$result = array ();
|
||||||
global $_DBArray;
|
global $_DBArray;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel\Cases;
|
namespace ProcessMaker\BusinessModel\Cases;
|
||||||
|
|
||||||
class OutputDocument
|
class OutputDocument
|
||||||
{
|
{
|
||||||
@@ -19,7 +19,7 @@ class OutputDocument
|
|||||||
$fields = $oCase->loadCase( $applicationUid );
|
$fields = $oCase->loadCase( $applicationUid );
|
||||||
$sProcessUID = $fields['PRO_UID'];
|
$sProcessUID = $fields['PRO_UID'];
|
||||||
$sTaskUID = '';
|
$sTaskUID = '';
|
||||||
$oCriteria = new \BusinessModel\Cases();
|
$oCriteria = new \ProcessMaker\BusinessModel\Cases();
|
||||||
$oCriteria->getAllGeneratedDocumentsCriteria( $sProcessUID, $applicationUid, $sTaskUID, $userUid);
|
$oCriteria->getAllGeneratedDocumentsCriteria( $sProcessUID, $applicationUid, $sTaskUID, $userUid);
|
||||||
$result = array ();
|
$result = array ();
|
||||||
global $_DBArray;
|
global $_DBArray;
|
||||||
@@ -63,7 +63,7 @@ class OutputDocument
|
|||||||
$fields = $oCase->loadCase( $sApplicationUID );
|
$fields = $oCase->loadCase( $sApplicationUID );
|
||||||
$sProcessUID = $fields['PRO_UID'];
|
$sProcessUID = $fields['PRO_UID'];
|
||||||
$sTaskUID = '';
|
$sTaskUID = '';
|
||||||
$oCaseRest = new \BusinessModel\Cases();
|
$oCaseRest = new \ProcessMaker\BusinessModel\Cases();
|
||||||
$oCaseRest->getAllGeneratedDocumentsCriteria( $sProcessUID, $sApplicationUID, $sTaskUID, $sUserUID );
|
$oCaseRest->getAllGeneratedDocumentsCriteria( $sProcessUID, $sApplicationUID, $sTaskUID, $sUserUID );
|
||||||
$result = array ();
|
$result = array ();
|
||||||
global $_DBArray;
|
global $_DBArray;
|
||||||
@@ -498,11 +498,11 @@ class OutputDocument
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
$g_media->set_security($GLOBALS['g_config']['pdfSecurity']);
|
$g_media->set_security($GLOBALS['g_config']['pdfSecurity']);
|
||||||
require_once (HTML2PS_DIR . 'pdf.fpdf.encryption.php');
|
require_once(HTML2PS_DIR . 'pdf.fpdf.encryption.php');
|
||||||
}
|
}
|
||||||
$pipeline = new \Pipeline();
|
$pipeline = new \Pipeline();
|
||||||
if (extension_loaded('curl')) {
|
if (extension_loaded('curl')) {
|
||||||
require_once (HTML2PS_DIR . 'fetcher.url.curl.class.php');
|
require_once(HTML2PS_DIR . 'fetcher.url.curl.class.php');
|
||||||
$pipeline->fetchers = array(new \FetcherURLCurl());
|
$pipeline->fetchers = array(new \FetcherURLCurl());
|
||||||
if (isset($proxy)) {
|
if (isset($proxy)) {
|
||||||
if ($proxy != '') {
|
if ($proxy != '') {
|
||||||
@@ -510,7 +510,7 @@ class OutputDocument
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
require_once (HTML2PS_DIR . 'fetcher.url.class.php');
|
require_once(HTML2PS_DIR . 'fetcher.url.class.php');
|
||||||
$pipeline->fetchers[] = new \FetcherURL();
|
$pipeline->fetchers[] = new \FetcherURL();
|
||||||
}
|
}
|
||||||
$pipeline->data_filters[] = new \DataFilterDoctype();
|
$pipeline->data_filters[] = new \DataFilterDoctype();
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
use \DbSource;
|
use \DbSource;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
use \UsersPeer;
|
use \UsersPeer;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
class DynaForm
|
class DynaForm
|
||||||
{
|
{
|
||||||
@@ -358,7 +358,7 @@ class DynaForm
|
|||||||
unset($arrayData["PMTABLE"]);
|
unset($arrayData["PMTABLE"]);
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
||||||
|
|
||||||
@@ -412,7 +412,7 @@ class DynaForm
|
|||||||
$processUid = $arrayDynaFormData["PRO_UID"];
|
$processUid = $arrayDynaFormData["PRO_UID"];
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, false);
|
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, false);
|
||||||
|
|
||||||
@@ -505,7 +505,7 @@ class DynaForm
|
|||||||
unset($arrayData["PMTABLE"]);
|
unset($arrayData["PMTABLE"]);
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
||||||
|
|
||||||
@@ -708,7 +708,7 @@ class DynaForm
|
|||||||
unset($arrayData["COPY_IMPORT"]);
|
unset($arrayData["COPY_IMPORT"]);
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
class Group
|
class Group
|
||||||
{
|
{
|
||||||
@@ -189,7 +189,7 @@ class Group
|
|||||||
unset($arrayData["GRP_UID"]);
|
unset($arrayData["GRP_UID"]);
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, true);
|
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, true);
|
||||||
|
|
||||||
@@ -227,7 +227,7 @@ class Group
|
|||||||
$arrayData = array_change_key_case($arrayData, CASE_UPPER);
|
$arrayData = array_change_key_case($arrayData, CASE_UPPER);
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$this->throwExceptionIfNotExistsGroup($groupUid, $this->arrayFieldNameForException["groupUid"]);
|
$this->throwExceptionIfNotExistsGroup($groupUid, $this->arrayFieldNameForException["groupUid"]);
|
||||||
|
|
||||||
@@ -459,7 +459,7 @@ class Group
|
|||||||
$arrayGroup = array();
|
$arrayGroup = array();
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfDataNotMetPagerVarDefinition(array("start" => $start, "limit" => $limit), $this->arrayFieldNameForException);
|
$process->throwExceptionIfDataNotMetPagerVarDefinition(array("start" => $start, "limit" => $limit), $this->arrayFieldNameForException);
|
||||||
|
|
||||||
@@ -671,7 +671,7 @@ class Group
|
|||||||
$arrayUser = array();
|
$arrayUser = array();
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$this->throwExceptionIfNotExistsGroup($groupUid, $this->arrayFieldNameForException["groupUid"]);
|
$this->throwExceptionIfNotExistsGroup($groupUid, $this->arrayFieldNameForException["groupUid"]);
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel\Group;
|
namespace ProcessMaker\BusinessModel\Group;
|
||||||
|
|
||||||
class User
|
class User
|
||||||
{
|
{
|
||||||
@@ -144,8 +144,8 @@ class User
|
|||||||
unset($arrayData["GRP_UID"]);
|
unset($arrayData["GRP_UID"]);
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
$group = new \BusinessModel\Group();
|
$group = new \ProcessMaker\BusinessModel\Group();
|
||||||
|
|
||||||
$group->throwExceptionIfNotExistsGroup($groupUid, $this->arrayFieldNameForException["groupUid"]);
|
$group->throwExceptionIfNotExistsGroup($groupUid, $this->arrayFieldNameForException["groupUid"]);
|
||||||
|
|
||||||
@@ -185,8 +185,8 @@ class User
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
$group = new \BusinessModel\Group();
|
$group = new \ProcessMaker\BusinessModel\Group();
|
||||||
|
|
||||||
$group->throwExceptionIfNotExistsGroup($groupUid, $this->arrayFieldNameForException["groupUid"]);
|
$group->throwExceptionIfNotExistsGroup($groupUid, $this->arrayFieldNameForException["groupUid"]);
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
class InputDocument
|
class InputDocument
|
||||||
{
|
{
|
||||||
@@ -209,7 +209,7 @@ class InputDocument
|
|||||||
unset($arrayData["INP_DOC_UID"]);
|
unset($arrayData["INP_DOC_UID"]);
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
||||||
|
|
||||||
@@ -278,7 +278,7 @@ class InputDocument
|
|||||||
$processUid = $arrayInputDocumentData["PRO_UID"];
|
$processUid = $arrayInputDocumentData["PRO_UID"];
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, false);
|
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, false);
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
|
|
||||||
@@ -239,7 +239,7 @@ class OutputDocument
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
require_once (PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "OutputDocument.php");
|
require_once(PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "OutputDocument.php");
|
||||||
$aData = array_change_key_case($aData, CASE_UPPER);
|
$aData = array_change_key_case($aData, CASE_UPPER);
|
||||||
$aData['PRO_UID'] = $sProcessUID;
|
$aData['PRO_UID'] = $sProcessUID;
|
||||||
//Verify data
|
//Verify data
|
||||||
@@ -350,9 +350,9 @@ class OutputDocument
|
|||||||
public function deleteOutputDocument($sProcessUID, $sOutputDocumentUID)
|
public function deleteOutputDocument($sProcessUID, $sOutputDocumentUID)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
require_once (PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "OutputDocument.php");
|
require_once(PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "OutputDocument.php");
|
||||||
require_once (PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "ObjectPermission.php");
|
require_once (PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "ObjectPermission.php");
|
||||||
require_once (PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "Step.php");
|
require_once(PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "Step.php");
|
||||||
\G::LoadClass( 'processMap' );
|
\G::LoadClass( 'processMap' );
|
||||||
$oOutputDocument = new \OutputDocument();
|
$oOutputDocument = new \OutputDocument();
|
||||||
$fields = $oOutputDocument->load( $sOutputDocumentUID );
|
$fields = $oOutputDocument->load( $sOutputDocumentUID );
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use G;
|
use G;
|
||||||
use Criteria;
|
use Criteria;
|
||||||
@@ -520,7 +520,7 @@ class Process
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($arrayData["PRO_CALENDAR"]) && $arrayData["PRO_CALENDAR"] . "" != "") {
|
if (isset($arrayData["PRO_CALENDAR"]) && $arrayData["PRO_CALENDAR"] . "" != "") {
|
||||||
$calendar = new \BusinessModel\Calendar();
|
$calendar = new \ProcessMaker\BusinessModel\Calendar();
|
||||||
|
|
||||||
$calendar->throwExceptionIfNotExistsCalendar($arrayData["PRO_CALENDAR"], $this->arrayFieldNameForException["processCalendar"]);
|
$calendar->throwExceptionIfNotExistsCalendar($arrayData["PRO_CALENDAR"], $this->arrayFieldNameForException["processCalendar"]);
|
||||||
}
|
}
|
||||||
@@ -530,7 +530,7 @@ class Process
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($arrayData["PRO_SUMMARY_DYNAFORM"]) && $arrayData["PRO_SUMMARY_DYNAFORM"] . "" != "") {
|
if (isset($arrayData["PRO_SUMMARY_DYNAFORM"]) && $arrayData["PRO_SUMMARY_DYNAFORM"] . "" != "") {
|
||||||
$dynaForm = new \BusinessModel\DynaForm();
|
$dynaForm = new \ProcessMaker\BusinessModel\DynaForm();
|
||||||
|
|
||||||
$dynaForm->throwExceptionIfNotExistsDynaForm($arrayData["PRO_SUMMARY_DYNAFORM"], $processUid, $this->arrayFieldNameForException["processSummaryDynaform"]);
|
$dynaForm->throwExceptionIfNotExistsDynaForm($arrayData["PRO_SUMMARY_DYNAFORM"], $processUid, $this->arrayFieldNameForException["processSummaryDynaform"]);
|
||||||
}
|
}
|
||||||
@@ -539,7 +539,7 @@ class Process
|
|||||||
$this->throwExceptionIfNotExistsRoutingScreenTemplate($processUid, $arrayData["PRO_DERIVATION_SCREEN_TPL"], $this->arrayFieldNameForException["processDerivationScreenTpl"]);
|
$this->throwExceptionIfNotExistsRoutingScreenTemplate($processUid, $arrayData["PRO_DERIVATION_SCREEN_TPL"], $this->arrayFieldNameForException["processDerivationScreenTpl"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$trigger = new \BusinessModel\Trigger();
|
$trigger = new \ProcessMaker\BusinessModel\Trigger();
|
||||||
|
|
||||||
if (isset($arrayData["PRO_TRI_DELETED"]) && $arrayData["PRO_TRI_DELETED"] . "" != "") {
|
if (isset($arrayData["PRO_TRI_DELETED"]) && $arrayData["PRO_TRI_DELETED"] . "" != "") {
|
||||||
$trigger->throwExceptionIfNotExistsTrigger($arrayData["PRO_TRI_DELETED"], $processUid, $this->arrayFieldNameForException["processTriDeleted"]);
|
$trigger->throwExceptionIfNotExistsTrigger($arrayData["PRO_TRI_DELETED"], $processUid, $this->arrayFieldNameForException["processTriDeleted"]);
|
||||||
@@ -826,7 +826,7 @@ class Process
|
|||||||
$arrayDefineProcessData["process"]["tasks"][$index]["TAS_UID_OLD"] = $uidAux;
|
$arrayDefineProcessData["process"]["tasks"][$index]["TAS_UID_OLD"] = $uidAux;
|
||||||
|
|
||||||
//Update task properties
|
//Update task properties
|
||||||
$task2 = new \BusinessModel\Task();
|
$task2 = new \ProcessMaker\BusinessModel\Task();
|
||||||
|
|
||||||
$arrayResult = $task2->updateProperties($taskUid, $processUid, $arrayData);
|
$arrayResult = $task2->updateProperties($taskUid, $processUid, $arrayData);
|
||||||
|
|
||||||
@@ -842,7 +842,7 @@ class Process
|
|||||||
$result = $task->update($arrayData);
|
$result = $task->update($arrayData);
|
||||||
|
|
||||||
//Update task properties
|
//Update task properties
|
||||||
$task2 = new \BusinessModel\Task();
|
$task2 = new \ProcessMaker\BusinessModel\Task();
|
||||||
|
|
||||||
$arrayResult = $task2->updateProperties($arrayData["TAS_UID"], $processUid, $arrayData);
|
$arrayResult = $task2->updateProperties($arrayData["TAS_UID"], $processUid, $arrayData);
|
||||||
break;
|
break;
|
||||||
@@ -1390,7 +1390,7 @@ class Process
|
|||||||
$this->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
$this->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
||||||
|
|
||||||
//Get data
|
//Get data
|
||||||
$dynaForm = new \BusinessModel\DynaForm();
|
$dynaForm = new \ProcessMaker\BusinessModel\DynaForm();
|
||||||
$dynaForm->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
$dynaForm->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
||||||
$dynaForm->setArrayFieldNameForException($this->arrayFieldNameForException);
|
$dynaForm->setArrayFieldNameForException($this->arrayFieldNameForException);
|
||||||
|
|
||||||
@@ -1431,7 +1431,7 @@ class Process
|
|||||||
$this->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
$this->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
||||||
|
|
||||||
//Get data
|
//Get data
|
||||||
$inputDocument = new \BusinessModel\InputDocument();
|
$inputDocument = new \ProcessMaker\BusinessModel\InputDocument();
|
||||||
$inputDocument->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
$inputDocument->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
||||||
$inputDocument->setArrayFieldNameForException($this->arrayFieldNameForException);
|
$inputDocument->setArrayFieldNameForException($this->arrayFieldNameForException);
|
||||||
|
|
||||||
@@ -1470,7 +1470,7 @@ class Process
|
|||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
//Get data
|
//Get data
|
||||||
$webEntry = new \BusinessModel\WebEntry();
|
$webEntry = new \ProcessMaker\BusinessModel\WebEntry();
|
||||||
$webEntry->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
$webEntry->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
||||||
$webEntry->setArrayFieldNameForException($this->arrayFieldNameForException);
|
$webEntry->setArrayFieldNameForException($this->arrayFieldNameForException);
|
||||||
|
|
||||||
@@ -1575,7 +1575,7 @@ class Process
|
|||||||
break;
|
break;
|
||||||
case "GRIDVARS":
|
case "GRIDVARS":
|
||||||
//Verify data
|
//Verify data
|
||||||
$dynaForm = new \BusinessModel\DynaForm();
|
$dynaForm = new \ProcessMaker\BusinessModel\DynaForm();
|
||||||
|
|
||||||
$dynaForm->throwExceptionIfNotExistsDynaForm($gridUid, $processUid, $this->arrayFieldNameForException["gridUid"]);
|
$dynaForm->throwExceptionIfNotExistsDynaForm($gridUid, $processUid, $this->arrayFieldNameForException["gridUid"]);
|
||||||
$dynaForm->throwExceptionIfNotIsGridDynaForm($gridUid, $this->arrayFieldNameForException["gridUid"]);
|
$dynaForm->throwExceptionIfNotIsGridDynaForm($gridUid, $this->arrayFieldNameForException["gridUid"]);
|
||||||
@@ -1622,7 +1622,7 @@ class Process
|
|||||||
//Get data
|
//Get data
|
||||||
\G::LoadClass("triggerLibrary");
|
\G::LoadClass("triggerLibrary");
|
||||||
|
|
||||||
$triggerWizard = new \BusinessModel\TriggerWizard();
|
$triggerWizard = new \ProcessMaker\BusinessModel\TriggerWizard();
|
||||||
$triggerWizard->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
$triggerWizard->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
||||||
$triggerWizard->setArrayFieldNameForException($this->arrayFieldNameForException);
|
$triggerWizard->setArrayFieldNameForException($this->arrayFieldNameForException);
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
class ProcessCategory
|
class ProcessCategory
|
||||||
{
|
{
|
||||||
@@ -145,7 +145,7 @@ class ProcessCategory
|
|||||||
$arrayProcessCategory = array();
|
$arrayProcessCategory = array();
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfDataNotMetPagerVarDefinition(array("start" => $start, "limit" => $limit), $this->arrayFieldNameForException);
|
$process->throwExceptionIfDataNotMetPagerVarDefinition(array("start" => $start, "limit" => $limit), $this->arrayFieldNameForException);
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
use \Cases;
|
use \Cases;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
class Step
|
class Step
|
||||||
{
|
{
|
||||||
@@ -498,7 +498,7 @@ class Step
|
|||||||
try {
|
try {
|
||||||
$arrayStep = array();
|
$arrayStep = array();
|
||||||
|
|
||||||
$step = new \BusinessModel\Step();
|
$step = new \ProcessMaker\BusinessModel\Step();
|
||||||
$step->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
$step->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
||||||
$step->setArrayParamException($this->arrayParamException);
|
$step->setArrayParamException($this->arrayParamException);
|
||||||
|
|
||||||
@@ -650,7 +650,7 @@ class Step
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Get data
|
//Get data
|
||||||
$trigger = new \BusinessModel\Trigger();
|
$trigger = new \ProcessMaker\BusinessModel\Trigger();
|
||||||
|
|
||||||
$flagStepAssignTask = 0;
|
$flagStepAssignTask = 0;
|
||||||
|
|
||||||
@@ -765,8 +765,8 @@ class Step
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Get data
|
//Get data
|
||||||
$bmTrigger = new \BusinessModel\Trigger();
|
$bmTrigger = new \ProcessMaker\BusinessModel\Trigger();
|
||||||
$bmStepTrigger = new \BusinessModel\Step\Trigger();
|
$bmStepTrigger = new \ProcessMaker\BusinessModel\Step\Trigger();
|
||||||
|
|
||||||
$stepTrigger = new \StepTrigger();
|
$stepTrigger = new \StepTrigger();
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel\Step;
|
namespace ProcessMaker\BusinessModel\Step;
|
||||||
|
|
||||||
use \BusinessModel\Step;
|
use \ProcessMaker\BusinessModel\Step;
|
||||||
|
|
||||||
class Trigger
|
class Trigger
|
||||||
{
|
{
|
||||||
@@ -330,7 +330,7 @@ class Trigger
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Get data
|
//Get data
|
||||||
$trigger = new \BusinessModel\Trigger();
|
$trigger = new \ProcessMaker\BusinessModel\Trigger();
|
||||||
|
|
||||||
$criteria = $trigger->getTriggerCriteria();
|
$criteria = $trigger->getTriggerCriteria();
|
||||||
|
|
||||||
@@ -373,7 +373,7 @@ class Trigger
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function moveStepTriggers($tasUid, $stepUid, $triUid, $type, $newPos) {
|
public function moveStepTriggers($tasUid, $stepUid, $triUid, $type, $newPos) {
|
||||||
$stepTrigger = new \BusinessModel\Step();
|
$stepTrigger = new \ProcessMaker\BusinessModel\Step();
|
||||||
$tempStep = $stepUid;
|
$tempStep = $stepUid;
|
||||||
$typeCompare = $type;
|
$typeCompare = $type;
|
||||||
if ($tempStep == '-1' || $tempStep == '-2') {
|
if ($tempStep == '-1' || $tempStep == '-2') {
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
use \SubProcessPeer;
|
use \SubProcessPeer;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
use \AdditionalTables;
|
use \AdditionalTables;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use \G;
|
use \G;
|
||||||
use \ProcessMaker\Util;
|
use \ProcessMaker\Util;
|
||||||
@@ -636,7 +636,7 @@ class Task
|
|||||||
try {
|
try {
|
||||||
$arrayStep = array();
|
$arrayStep = array();
|
||||||
|
|
||||||
$step = new \BusinessModel\Step();
|
$step = new \ProcessMaker\BusinessModel\Step();
|
||||||
$step->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
$step->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
|
||||||
$step->setArrayParamException($this->arrayParamException);
|
$step->setArrayParamException($this->arrayParamException);
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
class Trigger
|
class Trigger
|
||||||
{
|
{
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
class TriggerWizard
|
class TriggerWizard
|
||||||
{
|
{
|
||||||
@@ -165,7 +165,7 @@ class TriggerWizard
|
|||||||
//Verify data
|
//Verify data
|
||||||
$this->throwExceptionIfNotExistsMethodInLibrary($libraryName, $methodName, $libraryFieldNameForException, $methodFieldNameForException);
|
$this->throwExceptionIfNotExistsMethodInLibrary($libraryName, $methodName, $libraryFieldNameForException, $methodFieldNameForException);
|
||||||
|
|
||||||
$trigger = new \BusinessModel\Trigger();
|
$trigger = new \ProcessMaker\BusinessModel\Trigger();
|
||||||
|
|
||||||
$trigger->throwExceptionIfNotExistsTrigger($triggerUid, "", $triggerUidFieldNameForException);
|
$trigger->throwExceptionIfNotExistsTrigger($triggerUid, "", $triggerUidFieldNameForException);
|
||||||
|
|
||||||
@@ -303,7 +303,7 @@ class TriggerWizard
|
|||||||
array("paramDefinition" => $arrayMethodOutputParam, "paramData" => (isset($arrayParamData["output"]))? $arrayParamData["output"] : array())
|
array("paramDefinition" => $arrayMethodOutputParam, "paramData" => (isset($arrayParamData["output"]))? $arrayParamData["output"] : array())
|
||||||
);
|
);
|
||||||
|
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
foreach ($arrayVerify as $key1 => $value1) {
|
foreach ($arrayVerify as $key1 => $value1) {
|
||||||
if (count($value1["paramDefinition"]) > 0) {
|
if (count($value1["paramDefinition"]) > 0) {
|
||||||
@@ -491,7 +491,7 @@ class TriggerWizard
|
|||||||
//Verify data
|
//Verify data
|
||||||
$this->throwExceptionIfNotExistsMethodInLibrary($libraryName, $methodName, $this->arrayFieldNameForException["libraryName"], $this->arrayFieldNameForException["methodName"]);
|
$this->throwExceptionIfNotExistsMethodInLibrary($libraryName, $methodName, $this->arrayFieldNameForException["libraryName"], $this->arrayFieldNameForException["methodName"]);
|
||||||
|
|
||||||
$trigger = new \BusinessModel\Trigger();
|
$trigger = new \ProcessMaker\BusinessModel\Trigger();
|
||||||
|
|
||||||
$trigger->throwExceptionIfNotExistsTrigger($triggerUid, "", $this->arrayFieldNameForException["triggerUid"]);
|
$trigger->throwExceptionIfNotExistsTrigger($triggerUid, "", $this->arrayFieldNameForException["triggerUid"]);
|
||||||
|
|
||||||
@@ -671,8 +671,8 @@ class TriggerWizard
|
|||||||
$arrayData = array_change_key_case($arrayData, CASE_UPPER);
|
$arrayData = array_change_key_case($arrayData, CASE_UPPER);
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
$trigger = new \BusinessModel\Trigger();
|
$trigger = new \ProcessMaker\BusinessModel\Trigger();
|
||||||
|
|
||||||
$this->throwExceptionIfNotExistsMethodInLibrary($libraryName, $methodName, $this->arrayFieldNameForException["libraryName"], $this->arrayFieldNameForException["methodName"]);
|
$this->throwExceptionIfNotExistsMethodInLibrary($libraryName, $methodName, $this->arrayFieldNameForException["libraryName"], $this->arrayFieldNameForException["methodName"]);
|
||||||
|
|
||||||
@@ -745,8 +745,8 @@ class TriggerWizard
|
|||||||
$processUid = $arrayTriggerData["PRO_UID"];
|
$processUid = $arrayTriggerData["PRO_UID"];
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
$trigger = new \BusinessModel\Trigger();
|
$trigger = new \ProcessMaker\BusinessModel\Trigger();
|
||||||
|
|
||||||
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, false);
|
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, false);
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
use \G;
|
use \G;
|
||||||
|
|
||||||
class User
|
class User
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validator fields
|
* Validator fields
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
class WebEntry
|
class WebEntry
|
||||||
{
|
{
|
||||||
@@ -149,7 +149,7 @@ class WebEntry
|
|||||||
$arrayData = array();
|
$arrayData = array();
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ class WebEntry
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($dynaFormUid != "") {
|
if ($dynaFormUid != "") {
|
||||||
$dynaForm = new \BusinessModel\DynaForm();
|
$dynaForm = new \ProcessMaker\BusinessModel\DynaForm();
|
||||||
|
|
||||||
$dynaForm->throwExceptionIfNotExistsDynaForm($dynaFormUid, $processUid, $this->arrayFieldNameForException["dynaFormUid"]);
|
$dynaForm->throwExceptionIfNotExistsDynaForm($dynaFormUid, $processUid, $this->arrayFieldNameForException["dynaFormUid"]);
|
||||||
}
|
}
|
||||||
@@ -170,7 +170,7 @@ class WebEntry
|
|||||||
$task = new \Task();
|
$task = new \Task();
|
||||||
$dynaForm = new \Dynaform();
|
$dynaForm = new \Dynaform();
|
||||||
|
|
||||||
$step = new \BusinessModel\Step();
|
$step = new \ProcessMaker\BusinessModel\Step();
|
||||||
|
|
||||||
$arrayDirFile = scandir($webEntryPath); //Ascending Order
|
$arrayDirFile = scandir($webEntryPath); //Ascending Order
|
||||||
|
|
||||||
@@ -277,13 +277,13 @@ class WebEntry
|
|||||||
$arrayData = array_change_key_case($arrayData, CASE_UPPER);
|
$arrayData = array_change_key_case($arrayData, CASE_UPPER);
|
||||||
|
|
||||||
//Verify data
|
//Verify data
|
||||||
$process = new \BusinessModel\Process();
|
$process = new \ProcessMaker\BusinessModel\Process();
|
||||||
|
|
||||||
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
$process->throwExceptionIfNotExistsProcess($processUid, $this->arrayFieldNameForException["processUid"]);
|
||||||
|
|
||||||
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, true);
|
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayFieldDefinition, $this->arrayFieldNameForException, true);
|
||||||
|
|
||||||
$projectUser = new \BusinessModel\ProjectUser();
|
$projectUser = new \ProcessMaker\BusinessModel\ProjectUser();
|
||||||
|
|
||||||
if ($arrayData["METHOD"] == "WS") {
|
if ($arrayData["METHOD"] == "WS") {
|
||||||
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayUserFieldDefinition, $this->arrayFieldNameForException, true);
|
$process->throwExceptionIfDataNotMetFieldDefinition($arrayData, $this->arrayUserFieldDefinition, $this->arrayFieldNameForException, true);
|
||||||
@@ -297,7 +297,7 @@ class WebEntry
|
|||||||
|
|
||||||
$process->throwExceptionIfNotExistsTask($processUid, $arrayData["TAS_UID"], $this->arrayFieldNameForException["taskUid"]);
|
$process->throwExceptionIfNotExistsTask($processUid, $arrayData["TAS_UID"], $this->arrayFieldNameForException["taskUid"]);
|
||||||
|
|
||||||
$dynaForm = new \BusinessModel\DynaForm();
|
$dynaForm = new \ProcessMaker\BusinessModel\DynaForm();
|
||||||
|
|
||||||
$dynaForm->throwExceptionIfNotExistsDynaForm($arrayData["DYN_UID"], $processUid, $this->arrayFieldNameForException["dynaFormUid"]);
|
$dynaForm->throwExceptionIfNotExistsDynaForm($arrayData["DYN_UID"], $processUid, $this->arrayFieldNameForException["dynaFormUid"]);
|
||||||
|
|
||||||
@@ -327,7 +327,7 @@ class WebEntry
|
|||||||
|
|
||||||
$arrayDynaFormData = $dynaForm->Load($arrayData["DYN_UID"]);
|
$arrayDynaFormData = $dynaForm->Load($arrayData["DYN_UID"]);
|
||||||
|
|
||||||
$step = new \BusinessModel\Step();
|
$step = new \ProcessMaker\BusinessModel\Step();
|
||||||
|
|
||||||
if (!$step->existsRecord($arrayData["TAS_UID"], "DYNAFORM", $arrayData["DYN_UID"])) {
|
if (!$step->existsRecord($arrayData["TAS_UID"], "DYNAFORM", $arrayData["DYN_UID"])) {
|
||||||
throw (new \Exception(str_replace(array("{0}", "{1}"), array($arrayDynaFormData["DYN_TITLE"], $arrayTaskData["TAS_TITLE"]), "The DynaForm \"{0}\" isn't assigned to the task \"{1}\"")));
|
throw (new \Exception(str_replace(array("{0}", "{1}"), array($arrayDynaFormData["DYN_TITLE"], $arrayTaskData["TAS_TITLE"]), "The DynaForm \"{0}\" isn't assigned to the task \"{1}\"")));
|
||||||
@@ -39,7 +39,7 @@ abstract class Api
|
|||||||
|
|
||||||
public function getUserId()
|
public function getUserId()
|
||||||
{
|
{
|
||||||
return \Services\Api\OAuth2\Server::getUserId();
|
return \ProcessMaker\Services\OAuth2\Server::getUserId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
74
workflow/engine/src/ProcessMaker/Services/api.ini
Normal file
74
workflow/engine/src/ProcessMaker/Services/api.ini
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
;
|
||||||
|
; API Rest Configuration File
|
||||||
|
;
|
||||||
|
|
||||||
|
debug = 1
|
||||||
|
|
||||||
|
[api]
|
||||||
|
version = 1.0
|
||||||
|
vendor = "ProcessMaker - Michelangelo (Enterprise)"
|
||||||
|
|
||||||
|
[alias: test]
|
||||||
|
test2 = "ProcessMaker\Services\Api\Test2"
|
||||||
|
test3 = "ProcessMaker\Services\Api\Test3"
|
||||||
|
|
||||||
|
[alias: project]
|
||||||
|
activity = "ProcessMaker\Services\Api\Project\Activity"
|
||||||
|
step = "ProcessMaker\Services\Api\Project\Activity\Step"
|
||||||
|
assignee = "ProcessMaker\Services\Api\Project\Activity\Assignee"
|
||||||
|
trigger = "ProcessMaker\Services\Api\Project\Activity\Step\Trigger"
|
||||||
|
project = "ProcessMaker\Services\Api\Project"
|
||||||
|
trigger2 = "ProcessMaker\Services\Api\Project\Trigger"
|
||||||
|
event = "ProcessMaker\Services\Api\Project\Event"
|
||||||
|
dynaform = "ProcessMaker\Services\Api\Project\DynaForm"
|
||||||
|
input-document = "ProcessMaker\Services\Api\Project\InputDocument"
|
||||||
|
output-documents = "ProcessMaker\Services\Api\Project\OutputDocuments"
|
||||||
|
supervisors = "ProcessMaker\Services\Api\Project\ProcessSupervisors"
|
||||||
|
process-permissions = "ProcessMaker\Services\Api\Project\ProcessPermissions"
|
||||||
|
case-scheduler = "ProcessMaker\Services\Api\Project\CaseScheduler"
|
||||||
|
case-tracker = "ProcessMaker\Services\Api\Project\CaseTracker"
|
||||||
|
case-tracker-object = "ProcessMaker\Services\Api\Project\CaseTrackerObject"
|
||||||
|
project-users = "ProcessMaker\Services\Api\Project\ProjectUsers"
|
||||||
|
web-entry = "ProcessMaker\Services\Api\Project\WebEntry"
|
||||||
|
data-base-connections = "ProcessMaker\Services\Api\Project\DataBaseConnection"
|
||||||
|
files-manager = "ProcessMaker\Services\Api\Project\FilesManager"
|
||||||
|
report-Table = "ProcessMaker\Services\Api\Project\ReportTable"
|
||||||
|
sub-process= "ProcessMaker\Services\Api\Project\SubProcess"
|
||||||
|
trigger-wizard = "ProcessMaker\Services\Api\Project\TriggerWizard"
|
||||||
|
category = "ProcessMaker\Services\Api\ProcessCategory"
|
||||||
|
|
||||||
|
[alias: projects]
|
||||||
|
project = "ProcessMaker\Services\Api\Project"
|
||||||
|
|
||||||
|
[alias: group]
|
||||||
|
group = "ProcessMaker\Services\Api\Group"
|
||||||
|
user = "ProcessMaker\Services\Api\Group\User"
|
||||||
|
|
||||||
|
[alias: groups]
|
||||||
|
group = "ProcessMaker\Services\Api\Group"
|
||||||
|
|
||||||
|
[alias: user]
|
||||||
|
user = "ProcessMaker\Services\Api\User"
|
||||||
|
|
||||||
|
[alias: users]
|
||||||
|
user = "ProcessMaker\Services\Api\User"
|
||||||
|
|
||||||
|
[alias: calendar]
|
||||||
|
calendar = "ProcessMaker\Services\Api\Calendar"
|
||||||
|
|
||||||
|
[alias: calendars]
|
||||||
|
calendar = "ProcessMaker\Services\Api\Calendar"
|
||||||
|
|
||||||
|
[alias: case]
|
||||||
|
case = "ProcessMaker\Services\Api\Case"
|
||||||
|
|
||||||
|
[alias: cases]
|
||||||
|
case = "ProcessMaker\Services\Api\Case"
|
||||||
|
input-document = "ProcessMaker\Services\Api\Cases\InputDocument"
|
||||||
|
output-document = "ProcessMaker\Services\Api\Cases\OutputDocument"
|
||||||
|
|
||||||
|
[alias: category]
|
||||||
|
category = "ProcessMaker\Services\Api\ProcessCategory"
|
||||||
|
|
||||||
|
[alias: categories]
|
||||||
|
category = "ProcessMaker\Services\Api\ProcessCategory"
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
;
|
|
||||||
; API Rest Configuration File
|
|
||||||
;
|
|
||||||
|
|
||||||
debug = 1
|
|
||||||
|
|
||||||
[api]
|
|
||||||
version = 1.0
|
|
||||||
vendor = "ProcessMaker - Michelangelo (Enterprise)"
|
|
||||||
|
|
||||||
[alias: test]
|
|
||||||
test2 = "Services\Api\ProcessMaker\Test2"
|
|
||||||
test3 = "Services\Api\ProcessMaker\Test3"
|
|
||||||
|
|
||||||
[alias: project]
|
|
||||||
activity = "Services\Api\ProcessMaker\Project\Activity"
|
|
||||||
step = "Services\Api\ProcessMaker\Project\Activity\Step"
|
|
||||||
assignee = "Services\Api\ProcessMaker\Project\Activity\Assignee"
|
|
||||||
trigger = "Services\Api\ProcessMaker\Project\Activity\Step\Trigger"
|
|
||||||
project = "Services\Api\ProcessMaker\Project"
|
|
||||||
trigger2 = "Services\Api\ProcessMaker\Project\Trigger"
|
|
||||||
event = "Services\Api\ProcessMaker\Project\Event"
|
|
||||||
dynaform = "Services\Api\ProcessMaker\Project\DynaForm"
|
|
||||||
input-document = "Services\Api\ProcessMaker\Project\InputDocument"
|
|
||||||
output-documents = "Services\Api\ProcessMaker\Project\OutputDocuments"
|
|
||||||
supervisors = "Services\Api\ProcessMaker\Project\ProcessSupervisors"
|
|
||||||
process-permissions = "Services\Api\ProcessMaker\Project\ProcessPermissions"
|
|
||||||
case-scheduler = "Services\Api\ProcessMaker\Project\CaseScheduler"
|
|
||||||
case-tracker = "Services\Api\ProcessMaker\Project\CaseTracker"
|
|
||||||
case-tracker-object = "Services\Api\ProcessMaker\Project\CaseTrackerObject"
|
|
||||||
project-users = "Services\Api\ProcessMaker\Project\ProjectUsers"
|
|
||||||
web-entry = "Services\Api\ProcessMaker\Project\WebEntry"
|
|
||||||
data-base-connections = "Services\Api\ProcessMaker\Project\DataBaseConnection"
|
|
||||||
files-manager = "Services\Api\ProcessMaker\Project\FilesManager"
|
|
||||||
report-Table = "Services\Api\ProcessMaker\Project\ReportTable"
|
|
||||||
sub-process= "Services\Api\ProcessMaker\Project\SubProcess"
|
|
||||||
trigger-wizard = "Services\Api\ProcessMaker\Project\TriggerWizard"
|
|
||||||
category = "Services\Api\ProcessMaker\ProcessCategory"
|
|
||||||
|
|
||||||
[alias: projects]
|
|
||||||
project = "Services\Api\ProcessMaker\Project"
|
|
||||||
|
|
||||||
[alias: group]
|
|
||||||
group = "Services\Api\ProcessMaker\Group"
|
|
||||||
user = "Services\Api\ProcessMaker\Group\User"
|
|
||||||
|
|
||||||
[alias: groups]
|
|
||||||
group = "Services\Api\ProcessMaker\Group"
|
|
||||||
|
|
||||||
[alias: user]
|
|
||||||
user = "Services\Api\ProcessMaker\User"
|
|
||||||
|
|
||||||
[alias: users]
|
|
||||||
user = "Services\Api\ProcessMaker\User"
|
|
||||||
|
|
||||||
[alias: calendar]
|
|
||||||
calendar = "Services\Api\ProcessMaker\Calendar"
|
|
||||||
|
|
||||||
[alias: calendars]
|
|
||||||
calendar = "Services\Api\ProcessMaker\Calendar"
|
|
||||||
|
|
||||||
[alias: case]
|
|
||||||
case = "Services\Api\ProcessMaker\Case"
|
|
||||||
|
|
||||||
[alias: cases]
|
|
||||||
case = "Services\Api\ProcessMaker\Case"
|
|
||||||
input-document = "Services\Api\ProcessMaker\Cases\InputDocument"
|
|
||||||
output-document = "Services\Api\ProcessMaker\Cases\OutputDocument"
|
|
||||||
|
|
||||||
[alias: category]
|
|
||||||
category = "Services\Api\ProcessMaker\ProcessCategory"
|
|
||||||
|
|
||||||
[alias: categories]
|
|
||||||
category = "Services\Api\ProcessMaker\ProcessCategory"
|
|
||||||
@@ -14,7 +14,7 @@ class CalendarTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
public function testGetCalendars()
|
public function testGetCalendars()
|
||||||
{
|
{
|
||||||
$calendar = new \BusinessModel\Calendar();
|
$calendar = new \ProcessMaker\BusinessModel\Calendar();
|
||||||
|
|
||||||
$arrayCalendar = $calendar->getCalendars();
|
$arrayCalendar = $calendar->getCalendars();
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
$idCaseDraft = PMFNewCase($proUid, $usrUid, $tasUid, array());
|
$idCaseDraft = PMFNewCase($proUid, $usrUid, $tasUid, array());
|
||||||
$this->idCaseDraft = $idCaseDraft;
|
$this->idCaseDraft = $idCaseDraft;
|
||||||
|
|
||||||
$this->oCases = new \BusinessModel\Cases();
|
$this->oCases = new \ProcessMaker\BusinessModel\Cases();
|
||||||
$listToDo = $this->oCases->getList(array('userId' => '00000000000000000000000000000001'));
|
$listToDo = $this->oCases->getList(array('userId' => '00000000000000000000000000000001'));
|
||||||
$this->nowCountTodo = $listToDo['total'];
|
$this->nowCountTodo = $listToDo['total'];
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in first field the function
|
* Test error for type in first field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putCancelCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putCancelCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$app_uid' it must be a string.
|
* @expectedExceptionMessage Invalid value for '$app_uid' it must be a string.
|
||||||
*
|
*
|
||||||
@@ -74,7 +74,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in first field the function
|
* Test error for type in first field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putCancelCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putCancelCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The application with $app_uid: 'IdDoesNotExists' does not exist.
|
* @expectedExceptionMessage The application with $app_uid: 'IdDoesNotExists' does not exist.
|
||||||
*
|
*
|
||||||
@@ -89,7 +89,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in second field the function
|
* Test error for type in second field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putCancelCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putCancelCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$usr_uid' it must be a string.
|
* @expectedExceptionMessage Invalid value for '$usr_uid' it must be a string.
|
||||||
*
|
*
|
||||||
@@ -104,7 +104,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in second field the function
|
* Test error for type in second field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putCancelCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putCancelCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The user with $usr_uid: 'IdDoesNotExists' does not exist.
|
* @expectedExceptionMessage The user with $usr_uid: 'IdDoesNotExists' does not exist.
|
||||||
*
|
*
|
||||||
@@ -119,7 +119,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in third field the function
|
* Test error for type in third field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putCancelCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putCancelCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$del_index' it must be a integer.
|
* @expectedExceptionMessage Invalid value for '$del_index' it must be a integer.
|
||||||
*
|
*
|
||||||
@@ -134,7 +134,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test for cancel case
|
* Test for cancel case
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putCancelCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putCancelCase
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -142,7 +142,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
public function testPutCancelCase()
|
public function testPutCancelCase()
|
||||||
{
|
{
|
||||||
$this->oCases->putCancelCase($this->idCaseDraft, '00000000000000000000000000000001');
|
$this->oCases->putCancelCase($this->idCaseDraft, '00000000000000000000000000000001');
|
||||||
$this->oCases = new \BusinessModel\Cases();
|
$this->oCases = new \ProcessMaker\BusinessModel\Cases();
|
||||||
$listDraft = $this->oCases->getList(array('userId' => '00000000000000000000000000000001', 'action' => 'draft'));
|
$listDraft = $this->oCases->getList(array('userId' => '00000000000000000000000000000001', 'action' => 'draft'));
|
||||||
$this->assertNotEquals($this->nowCountDraft, $listDraft['total']);
|
$this->assertNotEquals($this->nowCountDraft, $listDraft['total']);
|
||||||
}
|
}
|
||||||
@@ -150,7 +150,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in first field the function
|
* Test error for type in first field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putPauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putPauseCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$app_uid' it must be a string.
|
* @expectedExceptionMessage Invalid value for '$app_uid' it must be a string.
|
||||||
*
|
*
|
||||||
@@ -165,7 +165,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in first field the function
|
* Test error for type in first field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putPauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putPauseCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The application with $app_uid: 'IdDoesNotExists' does not exist.
|
* @expectedExceptionMessage The application with $app_uid: 'IdDoesNotExists' does not exist.
|
||||||
*
|
*
|
||||||
@@ -180,7 +180,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in second field the function
|
* Test error for type in second field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putPauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putPauseCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$usr_uid' it must be a string.
|
* @expectedExceptionMessage Invalid value for '$usr_uid' it must be a string.
|
||||||
*
|
*
|
||||||
@@ -195,7 +195,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in second field the function
|
* Test error for type in second field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putPauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putPauseCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The user with $usr_uid: 'IdDoesNotExists' does not exist.
|
* @expectedExceptionMessage The user with $usr_uid: 'IdDoesNotExists' does not exist.
|
||||||
*
|
*
|
||||||
@@ -210,7 +210,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in third field the function
|
* Test error for type in third field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putPauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putPauseCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$del_index' it must be a integer.
|
* @expectedExceptionMessage Invalid value for '$del_index' it must be a integer.
|
||||||
*
|
*
|
||||||
@@ -225,7 +225,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in fourth field the function
|
* Test error for type in fourth field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putPauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putPauseCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The value '2014-44-44' is not a valid date for the format 'Y-m-d'.
|
* @expectedExceptionMessage The value '2014-44-44' is not a valid date for the format 'Y-m-d'.
|
||||||
*
|
*
|
||||||
@@ -240,7 +240,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test for cancel case
|
* Test for cancel case
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putPauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putPauseCase
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -248,7 +248,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
public function testPutPauseCase()
|
public function testPutPauseCase()
|
||||||
{
|
{
|
||||||
$this->oCases->putPauseCase($this->idCaseToDo, '00000000000000000000000000000001');
|
$this->oCases->putPauseCase($this->idCaseToDo, '00000000000000000000000000000001');
|
||||||
$this->oCases = new \BusinessModel\Cases();
|
$this->oCases = new \ProcessMaker\BusinessModel\Cases();
|
||||||
$listPaused = $this->oCases->getList(array('userId' => '00000000000000000000000000000001', 'action' => 'paused'));
|
$listPaused = $this->oCases->getList(array('userId' => '00000000000000000000000000000001', 'action' => 'paused'));
|
||||||
$this->assertNotEquals($this->nowCountPaused, $listPaused['total']);
|
$this->assertNotEquals($this->nowCountPaused, $listPaused['total']);
|
||||||
}
|
}
|
||||||
@@ -256,7 +256,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in first field the function
|
* Test error for type in first field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putUnpauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putUnpauseCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$app_uid' it must be a string.
|
* @expectedExceptionMessage Invalid value for '$app_uid' it must be a string.
|
||||||
*
|
*
|
||||||
@@ -271,7 +271,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in first field the function
|
* Test error for type in first field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putUnpauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putUnpauseCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The application with $app_uid: 'IdDoesNotExists' does not exist.
|
* @expectedExceptionMessage The application with $app_uid: 'IdDoesNotExists' does not exist.
|
||||||
*
|
*
|
||||||
@@ -286,7 +286,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in second field the function
|
* Test error for type in second field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putUnpauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putUnpauseCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$usr_uid' it must be a string.
|
* @expectedExceptionMessage Invalid value for '$usr_uid' it must be a string.
|
||||||
*
|
*
|
||||||
@@ -301,7 +301,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in second field the function
|
* Test error for type in second field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putUnpauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putUnpauseCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The user with $usr_uid: 'IdDoesNotExists' does not exist.
|
* @expectedExceptionMessage The user with $usr_uid: 'IdDoesNotExists' does not exist.
|
||||||
*
|
*
|
||||||
@@ -316,7 +316,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in third field the function
|
* Test error for type in third field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putUnpauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putUnpauseCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$del_index' it must be a integer.
|
* @expectedExceptionMessage Invalid value for '$del_index' it must be a integer.
|
||||||
*
|
*
|
||||||
@@ -331,7 +331,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test for cancel case
|
* Test for cancel case
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::putUnpauseCase
|
* @covers \ProcessMaker\BusinessModel\Cases::putUnpauseCase
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -339,7 +339,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
public function testPutUnpauseCase()
|
public function testPutUnpauseCase()
|
||||||
{
|
{
|
||||||
$this->oCases->putUnpauseCase($this->idCaseToDo, '00000000000000000000000000000001');
|
$this->oCases->putUnpauseCase($this->idCaseToDo, '00000000000000000000000000000001');
|
||||||
$this->oCases = new \BusinessModel\Cases();
|
$this->oCases = new \ProcessMaker\BusinessModel\Cases();
|
||||||
$listPaused = $this->oCases->getList(array('userId' => '00000000000000000000000000000001', 'action' => 'paused'));
|
$listPaused = $this->oCases->getList(array('userId' => '00000000000000000000000000000001', 'action' => 'paused'));
|
||||||
$this->assertEquals($this->nowCountPaused, $listPaused['total']);
|
$this->assertEquals($this->nowCountPaused, $listPaused['total']);
|
||||||
}
|
}
|
||||||
@@ -347,7 +347,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in first field the function
|
* Test error for type in first field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::deleteCase
|
* @covers \ProcessMaker\BusinessModel\Cases::deleteCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$app_uid' it must be a string.
|
* @expectedExceptionMessage Invalid value for '$app_uid' it must be a string.
|
||||||
*
|
*
|
||||||
@@ -362,7 +362,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in first field the function
|
* Test error for type in first field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::deleteCase
|
* @covers \ProcessMaker\BusinessModel\Cases::deleteCase
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The application with $app_uid: 'IdDoesNotExists' does not exist.
|
* @expectedExceptionMessage The application with $app_uid: 'IdDoesNotExists' does not exist.
|
||||||
*
|
*
|
||||||
@@ -377,7 +377,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test for cancel case
|
* Test for cancel case
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::deleteCase
|
* @covers \ProcessMaker\BusinessModel\Cases::deleteCase
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -385,7 +385,7 @@ class CasesAction13_17Test extends \PHPUnit_Framework_TestCase
|
|||||||
public function testDeleteCase()
|
public function testDeleteCase()
|
||||||
{
|
{
|
||||||
$this->oCases->deleteCase($this->idCaseToDo);
|
$this->oCases->deleteCase($this->idCaseToDo);
|
||||||
$this->oCases = new \BusinessModel\Cases();
|
$this->oCases = new \ProcessMaker\BusinessModel\Cases();
|
||||||
$listToDo = $this->oCases->getList(array('userId' => '00000000000000000000000000000001'));
|
$listToDo = $this->oCases->getList(array('userId' => '00000000000000000000000000000001'));
|
||||||
$this->assertNotEquals($this->nowCountTodo, $listToDo['total']);
|
$this->assertNotEquals($this->nowCountTodo, $listToDo['total']);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,14 +28,14 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
$this->oCases = new \BusinessModel\Cases();
|
$this->oCases = new \ProcessMaker\BusinessModel\Cases();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test error for type in first field the function
|
* Test error for type in first field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$dataList' it must be an array.
|
* @expectedExceptionMessage Invalid value for '$dataList' it must be an array.
|
||||||
*
|
*
|
||||||
@@ -50,7 +50,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for empty userId in array
|
* Test error for empty userId in array
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The user with userId: '' does not exist.
|
* @expectedExceptionMessage The user with userId: '' does not exist.
|
||||||
*
|
*
|
||||||
@@ -65,7 +65,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for not exists userId in array
|
* Test error for not exists userId in array
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The user with userId: 'IdDoesNotExists' does not exist.
|
* @expectedExceptionMessage The user with userId: 'IdDoesNotExists' does not exist.
|
||||||
*
|
*
|
||||||
@@ -80,7 +80,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for incorrect value $action in array
|
* Test error for incorrect value $action in array
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The value for $action is incorrect.
|
* @expectedExceptionMessage The value for $action is incorrect.
|
||||||
*
|
*
|
||||||
@@ -95,7 +95,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for incorrect value $process in array
|
* Test error for incorrect value $process in array
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The process with $pro_uid: 'IdDoesNotExists' does not exist.
|
* @expectedExceptionMessage The process with $pro_uid: 'IdDoesNotExists' does not exist.
|
||||||
*
|
*
|
||||||
@@ -113,7 +113,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for incorrect value $process in array
|
* Test error for incorrect value $process in array
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The category with $cat_uid: 'IdDoesNotExists' does not exist.
|
* @expectedExceptionMessage The category with $cat_uid: 'IdDoesNotExists' does not exist.
|
||||||
*
|
*
|
||||||
@@ -131,7 +131,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for incorrect value $process in array
|
* Test error for incorrect value $process in array
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The user with $usr_uid: 'IdDoesNotExists' does not exist.
|
* @expectedExceptionMessage The user with $usr_uid: 'IdDoesNotExists' does not exist.
|
||||||
*
|
*
|
||||||
@@ -149,7 +149,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for incorrect value $process in array
|
* Test error for incorrect value $process in array
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The value '2014-44-44' is not a valid date for the format 'Y-m-d'.
|
* @expectedExceptionMessage The value '2014-44-44' is not a valid date for the format 'Y-m-d'.
|
||||||
*
|
*
|
||||||
@@ -167,7 +167,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for incorrect value $process in array
|
* Test error for incorrect value $process in array
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The value '2014-44-44' is not a valid date for the format 'Y-m-d'.
|
* @expectedExceptionMessage The value '2014-44-44' is not a valid date for the format 'Y-m-d'.
|
||||||
*
|
*
|
||||||
@@ -185,7 +185,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get list to do not paged
|
* Test get list to do not paged
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -208,7 +208,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get list to do
|
* Test get list to do
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -231,7 +231,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get list draft not paged
|
* Test get list draft not paged
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -254,7 +254,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get list draft
|
* Test get list draft
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -277,7 +277,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get list participated not paged
|
* Test get list participated not paged
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -300,7 +300,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get list participated
|
* Test get list participated
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -323,7 +323,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get list unassigned not paged
|
* Test get list unassigned not paged
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -346,7 +346,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get list unassigned
|
* Test get list unassigned
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -369,7 +369,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get list search not paged
|
* Test get list search not paged
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -396,7 +396,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get list search
|
* Test get list search
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getList
|
* @covers \ProcessMaker\BusinessModel\Cases::getList
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -423,7 +423,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test add Case
|
* Test add Case
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::addCase
|
* @covers \ProcessMaker\BusinessModel\Cases::addCase
|
||||||
*
|
*
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
*/
|
*/
|
||||||
@@ -438,7 +438,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get Task Case
|
* Test get Task Case
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getTaskCase
|
* @covers \ProcessMaker\BusinessModel\Cases::getTaskCase
|
||||||
* @depends testAddCase
|
* @depends testAddCase
|
||||||
* @param array $aResponse
|
* @param array $aResponse
|
||||||
*
|
*
|
||||||
@@ -453,7 +453,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get Case Info
|
* Test get Case Info
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getCaseInfo
|
* @covers \ProcessMaker\BusinessModel\Cases::getCaseInfo
|
||||||
* @depends testAddCase
|
* @depends testAddCase
|
||||||
* @param array $aResponse
|
* @param array $aResponse
|
||||||
*
|
*
|
||||||
@@ -468,7 +468,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test put reassign case
|
* Test put reassign case
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::getCaseInfo
|
* @covers \ProcessMaker\BusinessModel\Cases::getCaseInfo
|
||||||
* @depends testAddCase
|
* @depends testAddCase
|
||||||
* @param array $aResponse
|
* @param array $aResponse
|
||||||
*
|
*
|
||||||
@@ -483,7 +483,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test add Case to test route case
|
* Test add Case to test route case
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::addCase
|
* @covers \ProcessMaker\BusinessModel\Cases::addCase
|
||||||
*
|
*
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
*/
|
*/
|
||||||
@@ -498,7 +498,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test put route case
|
* Test put route case
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::updateRouteCase
|
* @covers \ProcessMaker\BusinessModel\Cases::updateRouteCase
|
||||||
* @depends testAddCaseRouteCase
|
* @depends testAddCaseRouteCase
|
||||||
* @param array $aResponseRouteCase
|
* @param array $aResponseRouteCase
|
||||||
*
|
*
|
||||||
@@ -513,7 +513,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test add Case impersonate
|
* Test add Case impersonate
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases::addCaseImpersonate
|
* @covers \ProcessMaker\BusinessModel\Cases::addCaseImpersonate
|
||||||
*
|
*
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -28,14 +28,14 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
$this->oDepartment = new \BusinessModel\Department();
|
$this->oDepartment = new \ProcessMaker\BusinessModel\Department();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test error for type in first field the function
|
* Test error for type in first field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$dep_data' it must be an array.
|
* @expectedExceptionMessage Invalid value for '$dep_data' it must be an array.
|
||||||
*
|
*
|
||||||
@@ -50,7 +50,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for type in second field the function
|
* Test error for type in second field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Invalid value for '$create' it must be a boolean.
|
* @expectedExceptionMessage Invalid value for '$create' it must be a boolean.
|
||||||
*
|
*
|
||||||
@@ -65,7 +65,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for empty array in first field the function
|
* Test error for empty array in first field the function
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The field '$dep_data' is empty.
|
* @expectedExceptionMessage The field '$dep_data' is empty.
|
||||||
*
|
*
|
||||||
@@ -80,7 +80,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for create department with nonexistent dep_parent
|
* Test error for create department with nonexistent dep_parent
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The departament with dep_parent: 'testUidDepartment' does not exist.
|
* @expectedExceptionMessage The departament with dep_parent: 'testUidDepartment' does not exist.
|
||||||
*
|
*
|
||||||
@@ -96,7 +96,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for create department with nonexistent dep_manager
|
* Test error for create department with nonexistent dep_manager
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The user with dep_manager: 'testUidUser' does not exist.
|
* @expectedExceptionMessage The user with dep_manager: 'testUidUser' does not exist.
|
||||||
*
|
*
|
||||||
@@ -112,7 +112,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for create department with incorrect dep_status
|
* Test error for create department with incorrect dep_status
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The departament with dep_status: 'SUPER ACTIVO' is incorrect.
|
* @expectedExceptionMessage The departament with dep_status: 'SUPER ACTIVO' is incorrect.
|
||||||
*
|
*
|
||||||
@@ -128,7 +128,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for create department untitled
|
* Test error for create department untitled
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The field dep_title is required.
|
* @expectedExceptionMessage The field dep_title is required.
|
||||||
*
|
*
|
||||||
@@ -144,7 +144,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Save department parent
|
* Save department parent
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @return array
|
* @return array
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
@@ -169,7 +169,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
*
|
*
|
||||||
* @depends testCreateDepartmentParent
|
* @depends testCreateDepartmentParent
|
||||||
* @param array $dep_data, Data for parent department
|
* @param array $dep_data, Data for parent department
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The departament with dep_title: 'Departamento Padre' already exists.
|
* @expectedExceptionMessage The departament with dep_title: 'Departamento Padre' already exists.
|
||||||
*
|
*
|
||||||
@@ -185,7 +185,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test error for create department untitled
|
* Test error for create department untitled
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The departament with dep_uid: 'testUidDepartment' does not exist.
|
* @expectedExceptionMessage The departament with dep_uid: 'testUidDepartment' does not exist.
|
||||||
*
|
*
|
||||||
@@ -203,7 +203,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
*
|
*
|
||||||
* @depends testCreateDepartmentParent
|
* @depends testCreateDepartmentParent
|
||||||
* @param array $dep_data, Data for parent department
|
* @param array $dep_data, Data for parent department
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @return array
|
* @return array
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
@@ -235,7 +235,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
* @depends testCreateDepartmentChild
|
* @depends testCreateDepartmentChild
|
||||||
* @param array $dep_data, Data for parent department
|
* @param array $dep_data, Data for parent department
|
||||||
* @param array $child_data, Data for child department
|
* @param array $child_data, Data for child department
|
||||||
* @covers \BusinessModel\Department::saveDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::saveDepartment
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage The departament with dep_title: 'Departamento Padre' already exists.
|
* @expectedExceptionMessage The departament with dep_title: 'Departamento Padre' already exists.
|
||||||
* @return array
|
* @return array
|
||||||
@@ -259,7 +259,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
* @depends testCreateDepartmentChild
|
* @depends testCreateDepartmentChild
|
||||||
* @param array $dep_data, Data for parent department
|
* @param array $dep_data, Data for parent department
|
||||||
* @param array $child_data, Data for child department
|
* @param array $child_data, Data for child department
|
||||||
* @covers \BusinessModel\Department::getDepartments
|
* @covers \ProcessMaker\BusinessModel\Department::getDepartments
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -290,7 +290,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
*
|
*
|
||||||
* @depends testCreateDepartmentParent
|
* @depends testCreateDepartmentParent
|
||||||
* @param array $dep_data, Data for parent department
|
* @param array $dep_data, Data for parent department
|
||||||
* @covers \BusinessModel\Department::getDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::getDepartment
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
@@ -319,7 +319,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
* @depends testCreateDepartmentChild
|
* @depends testCreateDepartmentChild
|
||||||
* @param array $dep_data, Data for parent department
|
* @param array $dep_data, Data for parent department
|
||||||
* @param array $child_data, Data for child department
|
* @param array $child_data, Data for child department
|
||||||
* @covers \BusinessModel\Department::deleteDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::deleteDepartment
|
||||||
* @expectedException Exception
|
* @expectedException Exception
|
||||||
* @expectedExceptionMessage Can not delete the department, it has a children department.
|
* @expectedExceptionMessage Can not delete the department, it has a children department.
|
||||||
*
|
*
|
||||||
@@ -338,7 +338,7 @@ class DepartmentTest extends \PHPUnit_Framework_TestCase
|
|||||||
* @depends testCreateDepartmentChild
|
* @depends testCreateDepartmentChild
|
||||||
* @param array $dep_data, Data for parent department
|
* @param array $dep_data, Data for parent department
|
||||||
* @param array $child_data, Data for child department
|
* @param array $child_data, Data for child department
|
||||||
* @covers \BusinessModel\Department::deleteDepartment
|
* @covers \ProcessMaker\BusinessModel\Department::deleteDepartment
|
||||||
*
|
*
|
||||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class InputDocumentsCasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
$this->oInputDocument = new \BusinessModel\Cases\InputDocument();
|
$this->oInputDocument = new \ProcessMaker\BusinessModel\Cases\InputDocument();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -57,7 +57,7 @@ class InputDocumentsCasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get InputDocuments
|
* Test get InputDocuments
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases\InputDocument::getCasesInputDocuments
|
* @covers \ProcessMaker\BusinessModel\Cases\InputDocument::getCasesInputDocuments
|
||||||
* @depends testAddInputDocument
|
* @depends testAddInputDocument
|
||||||
* @param array $aResponse
|
* @param array $aResponse
|
||||||
*
|
*
|
||||||
@@ -72,7 +72,7 @@ class InputDocumentsCasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get InputDocument
|
* Test get InputDocument
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases\InputDocument::getCasesInputDocument
|
* @covers \ProcessMaker\BusinessModel\Cases\InputDocument::getCasesInputDocument
|
||||||
* @depends testAddInputDocument
|
* @depends testAddInputDocument
|
||||||
* @param array $aResponse
|
* @param array $aResponse
|
||||||
*
|
*
|
||||||
@@ -87,7 +87,7 @@ class InputDocumentsCasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test remove InputDocument
|
* Test remove InputDocument
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases\InputDocument::removeInputDocument
|
* @covers \ProcessMaker\BusinessModel\Cases\InputDocument::removeInputDocument
|
||||||
* @depends testAddInputDocument
|
* @depends testAddInputDocument
|
||||||
* @param array $aResponse
|
* @param array $aResponse
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -27,13 +27,13 @@ class OutputDocumentsCasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
$this->oOutputDocument = new \BusinessModel\Cases\OutputDocument();
|
$this->oOutputDocument = new \ProcessMaker\BusinessModel\Cases\OutputDocument();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test add OutputDocument
|
* Test add OutputDocument
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases\OutputDocument::addCasesOutputDocument
|
* @covers \ProcessMaker\BusinessModel\Cases\OutputDocument::addCasesOutputDocument
|
||||||
*
|
*
|
||||||
* @copyright Colosa - Bolivia
|
* @copyright Colosa - Bolivia
|
||||||
*/
|
*/
|
||||||
@@ -56,7 +56,7 @@ class OutputDocumentsCasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get OutputDocuments
|
* Test get OutputDocuments
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases\OutputDocument::getCasesOutputDocuments
|
* @covers \ProcessMaker\BusinessModel\Cases\OutputDocument::getCasesOutputDocuments
|
||||||
* @depends testAddCasesOutputDocument
|
* @depends testAddCasesOutputDocument
|
||||||
* @param array $aResponse
|
* @param array $aResponse
|
||||||
*
|
*
|
||||||
@@ -71,7 +71,7 @@ class OutputDocumentsCasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test get OutputDocument
|
* Test get OutputDocument
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases\OutputDocument::getCasesOutputDocument
|
* @covers \ProcessMaker\BusinessModel\Cases\OutputDocument::getCasesOutputDocument
|
||||||
* @depends testAddCasesOutputDocument
|
* @depends testAddCasesOutputDocument
|
||||||
* @param array $aResponse
|
* @param array $aResponse
|
||||||
*
|
*
|
||||||
@@ -86,7 +86,7 @@ class OutputDocumentsCasesTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* Test remove OutputDocument
|
* Test remove OutputDocument
|
||||||
*
|
*
|
||||||
* @covers \BusinessModel\Cases\OutputDocument::removeOutputDocument
|
* @covers \ProcessMaker\BusinessModel\Cases\OutputDocument::removeOutputDocument
|
||||||
* @depends testAddCasesOutputDocument
|
* @depends testAddCasesOutputDocument
|
||||||
* @param array $aResponse
|
* @param array $aResponse
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class ProcessCategoryTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public function testGetCategories()
|
public function testGetCategories()
|
||||||
{
|
{
|
||||||
$processCategory = new \BusinessModel\ProcessCategory();
|
$processCategory = new \ProcessMaker\BusinessModel\ProcessCategory();
|
||||||
|
|
||||||
$arrayProcessCategory = $processCategory->getCategories();
|
$arrayProcessCategory = $processCategory->getCategories();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user