HOR-4924
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
//test
|
|
||||||
use ProcessMaker\Core\System;
|
use ProcessMaker\Core\System;
|
||||||
|
|
||||||
class PmBootstrap extends Bootstrap
|
class PmBootstrap extends Bootstrap
|
||||||
@@ -17,9 +17,7 @@ class PmBootstrap extends Bootstrap
|
|||||||
|
|
||||||
require_once PATH_HOME . 'engine/config/paths.php';
|
require_once PATH_HOME . 'engine/config/paths.php';
|
||||||
|
|
||||||
//if (php_sapi_name() !== 'cli') {
|
|
||||||
session_start(); // starting session
|
session_start(); // starting session
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//wrapped
|
//wrapped
|
||||||
|
|||||||
@@ -2066,20 +2066,8 @@ class AppSolr
|
|||||||
));
|
));
|
||||||
foreach ($indexes as $index) {
|
foreach ($indexes as $index) {
|
||||||
$unassignedUsersGroups = array();
|
$unassignedUsersGroups = array();
|
||||||
// use cache
|
|
||||||
//$oMemcache = PMmemcached::getSingleton ($this->_solrInstance);
|
|
||||||
//$unassignedUsersGroups = $oMemcache->get ("SOLR_UNASSIGNED_USERS_GROUPS_" . $allAppDbData [$index] ['PRO_UID'] . "_" . $allAppDbData [$index] ['TAS_UID']);
|
|
||||||
//if (! $unassignedUsersGroups) {
|
|
||||||
|
|
||||||
$unassignedUsersGroups = $this->getTaskUnassignedUsersGroupsData($allAppDbData [$index] ['PRO_UID'], $allAppDbData [$index] ['TAS_UID']);
|
$unassignedUsersGroups = $this->getTaskUnassignedUsersGroupsData($allAppDbData [$index] ['PRO_UID'], $allAppDbData [$index] ['TAS_UID']);
|
||||||
|
|
||||||
// if the task has unassigned users or groups add del_index of delegation
|
|
||||||
//foreach ($unassignedUsersGroups as $i => $newRow) {
|
|
||||||
// $unassignedUsersGroups [$i] ['DEL_INDEX'] = $allAppDbData [$index] ['DEL_INDEX'];
|
|
||||||
//}
|
|
||||||
// store in cache
|
|
||||||
//$oMemcache->set ("SOLR_UNASSIGNED_USERS_GROUPS_" . $allAppDbData [$index] ['PRO_UID'] . "_" . $allAppDbData [$index] ['TAS_UID'], $unassignedUsersGroups);
|
|
||||||
//}
|
|
||||||
// copy list of unassigned users and groups
|
// copy list of unassigned users and groups
|
||||||
foreach ($unassignedUsersGroups as $unassignedUserGroup) {
|
foreach ($unassignedUsersGroups as $unassignedUserGroup) {
|
||||||
//unassigned users
|
//unassigned users
|
||||||
@@ -2107,9 +2095,6 @@ class AppSolr
|
|||||||
$dynaformFieldTypes = array();
|
$dynaformFieldTypes = array();
|
||||||
|
|
||||||
// get cache instance
|
// get cache instance
|
||||||
//$oMemcache = PMmemcached::getSingleton ($this->_solrInstance);
|
|
||||||
//$dynaformFieldTypes = $oMemcache->get ("SOLR_DYNAFORM_FIELD_TYPES_" . $documentInformation ['PRO_UID']);
|
|
||||||
//if (! $dynaformFieldTypes) {
|
|
||||||
$dynaformFileNames = $this->getProcessDynaformFileNames($documentInformation ['PRO_UID']);
|
$dynaformFileNames = $this->getProcessDynaformFileNames($documentInformation ['PRO_UID']);
|
||||||
$dynaformFields = array();
|
$dynaformFields = array();
|
||||||
foreach ($dynaformFileNames as $dynaformFileName) {
|
foreach ($dynaformFileNames as $dynaformFileName) {
|
||||||
|
|||||||
@@ -1,43 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* class.processMap.php
|
|
||||||
*
|
|
||||||
* @package workflow.engine.ProcessMaker
|
|
||||||
*
|
|
||||||
* ProcessMaker Open Source Edition
|
|
||||||
* Copyright (C) 2004 - 2011 Colosa Inc.
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as
|
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
|
||||||
* License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
|
||||||
*/
|
|
||||||
|
|
||||||
use ProcessMaker\Plugins\PluginRegistry;
|
use ProcessMaker\Plugins\PluginRegistry;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @package workflow.engine.ProcessMaker
|
|
||||||
*/
|
|
||||||
/**
|
|
||||||
* processMap - Process Map class
|
|
||||||
*
|
|
||||||
* @package workflow.engine.ProcessMaker
|
|
||||||
* @author Julio Cesar Laura Avendano
|
|
||||||
* @copyright 2007 COLOSA
|
|
||||||
*/
|
|
||||||
class ProcessMap
|
class ProcessMap
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -1,45 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Process.php
|
|
||||||
*
|
|
||||||
* @package workflow.engine.classes.model
|
|
||||||
*
|
|
||||||
* ProcessMaker Open Source Edition
|
|
||||||
* Copyright (C) 2004 - 2011 Colosa Inc.
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as
|
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
|
||||||
* License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
//require_once 'classes/model/om/BaseProcess.php';
|
|
||||||
//require_once 'classes/model/Content.php';
|
|
||||||
//require_once 'classes/model/ProcessCategory.php';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Skeleton subclass for representing a row from the 'PROCESS' table.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* You should add additional methods to this class to meet the
|
|
||||||
* application requirements. This class will only be generated as
|
|
||||||
* long as it does not already exist in the output directory.
|
|
||||||
*
|
|
||||||
* @package workflow.engine.classes.model
|
|
||||||
*/
|
|
||||||
class Process extends BaseProcess
|
class Process extends BaseProcess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -3,13 +3,6 @@
|
|||||||
use ProcessMaker\Core\System;
|
use ProcessMaker\Core\System;
|
||||||
use ProcessMaker\Plugins\PluginRegistry;
|
use ProcessMaker\Plugins\PluginRegistry;
|
||||||
|
|
||||||
/**
|
|
||||||
* Main Controller for processMaker v2.1
|
|
||||||
* @date Jul 17, 2011
|
|
||||||
*
|
|
||||||
* @author Erik Amaru Ortiz <erik@colosa.com>
|
|
||||||
*/
|
|
||||||
|
|
||||||
class Main extends Controller
|
class Main extends Controller
|
||||||
{
|
{
|
||||||
private $memcache;
|
private $memcache;
|
||||||
|
|||||||
@@ -1,26 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* main.php Cases List main processor
|
|
||||||
*
|
|
||||||
* ProcessMaker Open Source Edition
|
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as
|
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
|
||||||
* License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
|
||||||
*/
|
|
||||||
|
|
||||||
$conf = new Configurations();
|
$conf = new Configurations();
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* processes_List.php
|
|
||||||
*
|
|
||||||
* ProcessMaker Open Source Edition
|
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as
|
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
|
||||||
* License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
|
||||||
*/
|
|
||||||
|
|
||||||
require_once 'classes/model/Process.php';
|
require_once 'classes/model/Process.php';
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,10 @@
|
|||||||
|
|
||||||
namespace ProcessMaker\BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use G;
|
|
||||||
use Criteria;
|
use Criteria;
|
||||||
use DynaformHandler;
|
use DynaformHandler;
|
||||||
|
use G;
|
||||||
|
use PMmemcached;
|
||||||
use ProcessPeer;
|
use ProcessPeer;
|
||||||
use ResultSet;
|
use ResultSet;
|
||||||
|
|
||||||
@@ -1221,7 +1222,7 @@ class Process
|
|||||||
|
|
||||||
if (($proData = $memcache->get($memkey)) === false) {
|
if (($proData = $memcache->get($memkey)) === false) {
|
||||||
$proData = $process->getAllProcesses($start, $limit, null, $arrayFilterData["processName"]);
|
$proData = $process->getAllProcesses($start, $limit, null, $arrayFilterData["processName"]);
|
||||||
$memcache->set($memkey, $proData, \PMmemcached::ONE_HOUR);
|
$memcache->set($memkey, $proData, PMmemcached::ONE_HOUR);
|
||||||
$memcacheUsed = "no";
|
$memcacheUsed = "no";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -1232,8 +1233,8 @@ class Process
|
|||||||
if (($proData = $memcache->get($memkey)) === false || ($totalCount = $memcache->get($memkeyTotal)) === false) {
|
if (($proData = $memcache->get($memkey)) === false || ($totalCount = $memcache->get($memkeyTotal)) === false) {
|
||||||
$proData = $process->getAllProcesses($start, $limit);
|
$proData = $process->getAllProcesses($start, $limit);
|
||||||
$totalCount = $process->getAllProcessesCount();
|
$totalCount = $process->getAllProcessesCount();
|
||||||
$memcache->set($memkey, $proData, \PMmemcached::ONE_HOUR);
|
$memcache->set($memkey, $proData, PMmemcached::ONE_HOUR);
|
||||||
$memcache->set($memkeyTotal, $totalCount, \PMmemcached::ONE_HOUR);
|
$memcache->set($memkeyTotal, $totalCount, PMmemcached::ONE_HOUR);
|
||||||
$memcacheUsed = "no";
|
$memcacheUsed = "no";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,27 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* sysGeneric.php
|
|
||||||
*
|
|
||||||
* ProcessMaker Open Source Edition
|
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as
|
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
|
||||||
* License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
use ProcessMaker\Plugins\PluginRegistry;
|
use ProcessMaker\Plugins\PluginRegistry;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user