Merge remote branch 'upstream/master' into BUG-9630
This commit is contained in:
@@ -9,63 +9,91 @@
|
||||
* @author Erik Amaru Ortiz <aortiz.erik@gmail.com>
|
||||
*/
|
||||
|
||||
include dirname(__FILE__) . '/../../../gulliver/core/Bootstrap.php';
|
||||
include dirname(__FILE__) . '/../../../workflow/engine/PmBootstrap.php';
|
||||
$basePath = realpath(dirname(__FILE__) . '/../../../');
|
||||
include $basePath . '/gulliver/core/Bootstrap.php';
|
||||
include $basePath . '/workflow/engine/PmBootstrap.php';
|
||||
|
||||
$config = array(
|
||||
'path_trunk' => realpath(dirname(__FILE__) . '/../../../')
|
||||
);
|
||||
|
||||
$bootstrap = new PmBootstrap($config);
|
||||
$bootstrap = new PmBootstrap(array('path_trunk' => $basePath));
|
||||
$bootstrap->registerClasses();
|
||||
$bootstrap->configure();
|
||||
|
||||
if (! isset($argv[1])) {
|
||||
$help = '$>' . $argv[0] . " [option] [plugin-name]\n";
|
||||
$help .= "Avalaibles options:\n";
|
||||
$help .= " build-api : Build Crud Rest API from ProcessMaker or a plugin.\n";
|
||||
$help .= " gen-ini : Generates the rest config ini file.\n";
|
||||
$help .= "* [plugin-name] : (Optional) to specify create crud api for a determiated plugin.\n\n";
|
||||
$help = <<<EOT
|
||||
Usage: {$argv[0]} [build-crud] [gen-ini] [-p <plugin name>] [-w <workspace name>]
|
||||
|
||||
Options:
|
||||
build-crud : Task, build Rest Crud API.
|
||||
gen-ini : Task, generates the rest config ini file.
|
||||
-p : Especify a plugin to set as enviroment to perform the tasks.
|
||||
-w : Especify a workspace to set as enviroment to perform the tasks.
|
||||
|
||||
EOT;
|
||||
|
||||
echo $help;
|
||||
exit(0);
|
||||
}
|
||||
|
||||
$restTool = new Service_Rest_RestTool();
|
||||
$restTool->setBasePath(PATH_CORE);
|
||||
|
||||
try {
|
||||
switch ($argv[1]) {
|
||||
case 'build-api':
|
||||
if (isset($argv[2])) {
|
||||
// attemp create rest api from a plugin
|
||||
if (! is_dir(PATH_PLUGINS . $argv[2])) {
|
||||
throw new Exception(sprintf("Plugin '%s' doesn't exist.", $argv[2]));
|
||||
}
|
||||
|
||||
$restTool->setBasePath(PATH_PLUGINS . $argv[2] . PATH_SEP);
|
||||
}
|
||||
|
||||
$restTool->buildApi();
|
||||
break;
|
||||
|
||||
case 'build-crud':
|
||||
case 'gen-ini':
|
||||
if (file_exists(PATH_CONFIG . '/rest-config.ini')) {
|
||||
echo "The file 'rest-config.ini' already exits, overwrite (Y/n)? ";
|
||||
$resp = trim(fgets(STDIN));
|
||||
if (isset($argv[2])) {
|
||||
if (! isset($argv[3])) {
|
||||
throw new Exception("Missing option, need especify a valid argument after option '{$argv[2]}'");
|
||||
}
|
||||
|
||||
if (strtolower($resp) != 'y') {
|
||||
echo "Skipped\n";
|
||||
exit(0);
|
||||
switch ($argv[2]) {
|
||||
case '-p':
|
||||
// attempt create rest api from a plugin
|
||||
if (! is_dir(PATH_PLUGINS . $argv[3])) {
|
||||
throw new Exception(sprintf("Plugin '%s' doesn't exist.", $argv[3]));
|
||||
}
|
||||
|
||||
$restTool->setBasePath($optPath = PATH_PLUGINS . $argv[3] . PATH_SEP);
|
||||
break;
|
||||
|
||||
case '-w':
|
||||
// attempt create rest api from a plugin
|
||||
if (! is_dir(PATH_DATA . 'sites' . PATH_SEP . $argv[3])) {
|
||||
throw new Exception(sprintf("Workspace '%s' doesn't exist.", $argv[3]));
|
||||
}
|
||||
|
||||
$path = PATH_DATA . 'sites' . PATH_SEP . $argv[3] . PATH_SEP;
|
||||
$restTool->setBasePath($path);
|
||||
$restTool->setConfigFile($path . 'rest-config.ini');
|
||||
$restTool->setDbXmlSchemaFile(PATH_CONFIG . 'schema.xml');
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new Exception(sprintf("Invalid option '%s'", $argv[2]));
|
||||
}
|
||||
}
|
||||
|
||||
echo "Generating config ini file ... ";
|
||||
$restTool->init();
|
||||
|
||||
$genFile = $restTool->buildConfigIni();
|
||||
if ($argv[1] == 'build-crud') {
|
||||
$restTool->buildCrudApi();
|
||||
} else {
|
||||
if (file_exists(PATH_CONFIG . '/rest-config.ini')) {
|
||||
echo "The file 'rest-config.ini' already exits, overwrite (Y/n)? ";
|
||||
$resp = trim(fgets(STDIN));
|
||||
|
||||
echo "DONE!\n";
|
||||
echo "File generated: $genFile\n\n";
|
||||
if (strtolower($resp) != 'y') {
|
||||
echo "Skipped\n";
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
echo "Generating config ini file ... ";
|
||||
|
||||
$genFile = $restTool->buildConfigIni();
|
||||
|
||||
echo "DONE!\n";
|
||||
echo "File generated: $genFile\n\n";
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -73,5 +101,5 @@ try {
|
||||
break;
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
echo $e->getMessage() . "\n";
|
||||
Service_Rest_RestTool::out($e->getMessage(), 'error');
|
||||
}
|
||||
|
||||
@@ -3551,29 +3551,39 @@ class processMap {
|
||||
* @return boolean true
|
||||
*/
|
||||
function newObjectPermission($sProcessUID) {
|
||||
$aUsersGroups = array();
|
||||
$aUsersGroups [] = array('UID' => 'char', 'LABEL' => 'char');
|
||||
$usersGroups = '<select pm:dependent="0" pm:label="' . G::LoadTranslation('ID_GROUP_USERS') . '" name="form[GROUP_USER]" id="form[GROUP_USER]" class="module_app_input___gray">';
|
||||
$start = '';
|
||||
$limit = '';
|
||||
$filter = '';
|
||||
$groups = new Groupwf();
|
||||
$result = $groups->getAllGroup($start,$limit,$filter);
|
||||
foreach ($result['rows'] as $results) {
|
||||
$aUsersGroups [] = array('UID' => '2|' . $results ['GRP_UID'], 'LABEL' => $results ['GRP_TITLE'] . ' (' . G::LoadTranslation('ID_GROUP') . ')');
|
||||
if (count($result['rows']) > 0) {
|
||||
$usersGroups .= '<optgroup label="' . G::LoadTranslation('ID_GROUPS') . '">';
|
||||
foreach ($result['rows'] as $results) {
|
||||
$usersGroups .= '<option value="2|' . $results ['GRP_UID'] . '">' . htmlentities($results ['GRP_TITLE'], ENT_QUOTES, 'UTF-8') . '</option>';
|
||||
}
|
||||
$usersGroups .= '</optgroup>';
|
||||
}
|
||||
$oCriteria = new Criteria('workflow');
|
||||
$oCriteria->addSelectColumn(UsersPeer::USR_UID);
|
||||
$oCriteria->addSelectColumn(UsersPeer::USR_USERNAME);
|
||||
$oCriteria->addSelectColumn(UsersPeer::USR_FIRSTNAME);
|
||||
$oCriteria->addSelectColumn(UsersPeer::USR_LASTNAME);
|
||||
$oCriteria->addAscendingOrderByColumn(UsersPeer::USR_FIRSTNAME);
|
||||
$oCriteria->addAscendingOrderByColumn(UsersPeer::USR_LASTNAME);
|
||||
$oCriteria->add(UsersPeer::USR_STATUS, 'ACTIVE');
|
||||
$oDataset = UsersPeer::doSelectRS($oCriteria);
|
||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$oDataset->next();
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$aUsersGroups [] = array('UID' => '1|' . $aRow ['USR_UID'], 'LABEL' => $aRow ['USR_FIRSTNAME'] . ' ' . $aRow ['USR_LASTNAME'] . ' (' . $aRow ['USR_USERNAME'] . ')');
|
||||
$oDataset->next();
|
||||
if ($oDataset->getRecordCount() > 0) {
|
||||
$usersGroups .= '<optgroup label="' . G::LoadTranslation('ID_USERS') . '">';
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$usersGroups .= '<option value="1|' . $aRow ['USR_UID'] . '">' . htmlentities($aRow ['USR_FIRSTNAME'] . ' ' . $aRow ['USR_LASTNAME'] . ' (' . $aRow ['USR_USERNAME'] . ')', ENT_QUOTES, 'UTF-8') . '</option>';
|
||||
$oDataset->next();
|
||||
}
|
||||
$usersGroups .= '</optgroup>';
|
||||
}
|
||||
$usersGroups .= '</select>';
|
||||
$aAllObjects = array();
|
||||
$aAllObjects [] = array('UID' => 'char', 'LABEL' => 'char');
|
||||
$aAllDynaforms = array();
|
||||
@@ -3617,7 +3627,6 @@ class processMap {
|
||||
}
|
||||
global $_DBArray;
|
||||
$_DBArray = (isset($_SESSION ['_DBArray']) ? $_SESSION ['_DBArray'] : '');
|
||||
$_DBArray ['usersGroups'] = $aUsersGroups;
|
||||
$_DBArray ['allObjects'] = $aAllObjects;
|
||||
$_DBArray ['allDynaforms'] = $aAllDynaforms;
|
||||
$_DBArray ['allInputs'] = $aAllInputs;
|
||||
@@ -3625,7 +3634,7 @@ class processMap {
|
||||
$_SESSION ['_DBArray'] = $_DBArray;
|
||||
global $G_PUBLISH;
|
||||
$G_PUBLISH = new Publisher ( );
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_NewObjectPermission', '', array('LANG' => SYS_LANG, 'PRO_UID' => $sProcessUID, 'ID_DELETE' => G::LoadTranslation('ID_DELETE')), 'processes_SaveObjectPermission');
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_NewObjectPermission', '', array('GROUP_USER' => $usersGroups, 'LANG' => SYS_LANG, 'PRO_UID' => $sProcessUID, 'ID_DELETE' => G::LoadTranslation('ID_DELETE')), 'processes_SaveObjectPermission');
|
||||
G::RenderPage('publish', 'raw');
|
||||
return true;
|
||||
}
|
||||
@@ -3661,7 +3670,6 @@ class processMap {
|
||||
$aFields ['PRO_UID'] = $aRows ['PRO_UID'];
|
||||
$aFields ['OP_CASE_STATUS'] = $aRows ['OP_CASE_STATUS'];
|
||||
$aFields ['TAS_UID'] = $aRows ['TAS_UID'];
|
||||
$aFields ['GROUP_USER'] = $user;
|
||||
$aFields ['OP_TASK_SOURCE'] = $aRows ['OP_TASK_SOURCE'];
|
||||
$aFields ['OP_PARTICIPATE'] = $aRows ['OP_PARTICIPATE'];
|
||||
$aFields ['OP_OBJ_TYPE'] = $aRows ['OP_OBJ_TYPE'];
|
||||
@@ -3682,8 +3690,7 @@ class processMap {
|
||||
break;
|
||||
}
|
||||
|
||||
$aUsersGroups = array();
|
||||
$aUsersGroups [] = array('UID' => 'char', 'LABEL' => 'char');
|
||||
$usersGroups = '<select pm:dependent="0" pm:label="' . G::LoadTranslation('ID_GROUP_USERS') . '" name="form[GROUP_USER]" id="form[GROUP_USER]" class="module_app_input___gray">';
|
||||
$oCriteria = new Criteria('workflow');
|
||||
$oCriteria->addSelectColumn(GroupwfPeer::GRP_UID);
|
||||
$oCriteria->addAsColumn('GRP_TITLE', ContentPeer::CON_VALUE);
|
||||
@@ -3693,12 +3700,17 @@ class processMap {
|
||||
$aConditions [] = array(ContentPeer::CON_LANG, DBAdapter::getStringDelimiter () . SYS_LANG . DBAdapter::getStringDelimiter ());
|
||||
$oCriteria->addJoinMC($aConditions, Criteria::LEFT_JOIN);
|
||||
$oCriteria->add(GroupwfPeer::GRP_STATUS, 'ACTIVE');
|
||||
$oCriteria->addAscendingOrderByColumn('GRP_TITLE');
|
||||
$oDataset = GroupwfPeer::doSelectRS($oCriteria);
|
||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$oDataset->next();
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$aUsersGroups [] = array('UID' => '2|' . $aRow ['GRP_UID'], 'LABEL' => $aRow ['GRP_TITLE'] . ' (' . G::LoadTranslation('ID_GROUP') . ')');
|
||||
$oDataset->next();
|
||||
if ($oDataset->getRecordCount() > 0) {
|
||||
$usersGroups .= '<optgroup label="' . G::LoadTranslation('ID_GROUPS') . '">';
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$usersGroups .= '<option value="2|' . $aRow ['GRP_UID'] . '"' . ('2|' . $aRow ['GRP_UID'] == $user ? ' selected="selected"' : '') . '>' . htmlentities($aRow ['GRP_TITLE'], ENT_QUOTES, 'UTF-8') . '</option>';
|
||||
$oDataset->next();
|
||||
}
|
||||
$usersGroups .= '</optgroup>';
|
||||
}
|
||||
$oCriteria = new Criteria('workflow');
|
||||
$oCriteria->addSelectColumn(UsersPeer::USR_UID);
|
||||
@@ -3706,12 +3718,18 @@ class processMap {
|
||||
$oCriteria->addSelectColumn(UsersPeer::USR_FIRSTNAME);
|
||||
$oCriteria->addSelectColumn(UsersPeer::USR_LASTNAME);
|
||||
$oCriteria->add(UsersPeer::USR_STATUS, 'ACTIVE');
|
||||
$oCriteria->addAscendingOrderByColumn(UsersPeer::USR_FIRSTNAME);
|
||||
$oCriteria->addAscendingOrderByColumn(UsersPeer::USR_LASTNAME);
|
||||
$oDataset = UsersPeer::doSelectRS($oCriteria);
|
||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$oDataset->next();
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$aUsersGroups [] = array('UID' => '1|' . $aRow ['USR_UID'], 'LABEL' => $aRow ['USR_FIRSTNAME'] . ' ' . $aRow ['USR_LASTNAME'] . ' (' . $aRow ['USR_USERNAME'] . ')');
|
||||
$oDataset->next();
|
||||
if ($oDataset->getRecordCount() > 0) {
|
||||
$usersGroups .= '<optgroup label="' . G::LoadTranslation('ID_USERS') . '">';
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$usersGroups .= '<option value="1|' . $aRow ['USR_UID'] . '"' . ('1|' . $aRow ['USR_UID'] == $user ? ' selected="selected"' : '') . '>' . htmlentities($aRow ['USR_FIRSTNAME'] . ' ' . $aRow ['USR_LASTNAME'] . ' (' . $aRow ['USR_USERNAME'] . ')', ENT_QUOTES, 'UTF-8') . '</option>';
|
||||
$oDataset->next();
|
||||
}
|
||||
$usersGroups .= '</optgroup>';
|
||||
}
|
||||
|
||||
$aAllObjects = array();
|
||||
@@ -3755,16 +3773,17 @@ class processMap {
|
||||
}
|
||||
global $_DBArray;
|
||||
$_DBArray = (isset($_SESSION ['_DBArray']) ? $_SESSION ['_DBArray'] : '');
|
||||
$_DBArray ['usersGroups'] = $aUsersGroups;
|
||||
$_DBArray ['allObjects'] = $aAllObjects;
|
||||
$_DBArray ['allDynaforms'] = $aAllDynaforms;
|
||||
$_DBArray ['allInputs'] = $aAllInputs;
|
||||
$_DBArray ['allOutputs'] = $aAllOutputs;
|
||||
$_SESSION ['_DBArray'] = $_DBArray;
|
||||
|
||||
global $G_PUBLISH;
|
||||
$G_PUBLISH = new Publisher ( );
|
||||
$aFields['GROUP_USER'] = $usersGroups;
|
||||
$aFields['ID_DELETE'] = G::LoadTranslation('ID_DELETE');
|
||||
|
||||
global $G_PUBLISH;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_EditObjectPermission', '', $aFields, 'processes_SaveEditObjectPermission');
|
||||
G::RenderPage('publish', 'raw');
|
||||
}
|
||||
|
||||
@@ -1,626 +1,532 @@
|
||||
; -= ProcessMaker RestFul services configuration =-
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; -= ProcessMaker RestFul services configuration =- ;
|
||||
; ;
|
||||
; On this configuration file you can customize the Processmaker Rest Service. ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
; On this configuration file you can customize some aspects to expose on rest service.
|
||||
; Configure what methods (GET,POST,PUT,DELETE) should be exposed by ProcessMaker Rest server.
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; Rest Service Configuration ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
enable_service = true
|
||||
|
||||
; add headers to rest server responses
|
||||
[HEADERS]
|
||||
; Enable this header to allow "Cross Domain AJAX" requests;
|
||||
; This works because processmaker is handling correctly requests with method 'OPTIONS'
|
||||
; that automatically is sent by a client using XmlHttpRequest or similar.
|
||||
;Access-Control-Allow-Origin = *
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; DB Tables Crud generation Config ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;
|
||||
; This configuration section is used by ./rest-gen command to build the Rest Crud Api
|
||||
;
|
||||
; Configure what methods GET, POST, PUT, DELETE should be exposed.
|
||||
; Configure for each table/method what columns sould be exposed.
|
||||
;
|
||||
; Configuration for each table must starts with a section like:
|
||||
; [TABLE:<table-name>]
|
||||
;
|
||||
; inside of each section there are two config keys:
|
||||
;
|
||||
; "ALLOW_METHODS" -> Use this param to set allowed methods (separeted by a single space).
|
||||
; Complete example:
|
||||
; ALLOW_METHODS = GET POST PUT DELETE
|
||||
;
|
||||
; The others params are: "EXPOSE_COLUMNS_GET", "EXPOSE_COLUMNS_POST" and "EXPOSE_COLUMNS_PUT"
|
||||
; this params are used to configure the columns that should be exposed;
|
||||
; wildcard '*' can be used to speccify all columns.
|
||||
;
|
||||
; Example:
|
||||
;
|
||||
;[TABLE:MY_TABLE]
|
||||
; ALLOW_METHODS = GET POST PUT DELETE
|
||||
; EXPOSE_COLUMNS_GET = *
|
||||
; EXPOSE_COLUMNS_POST = FIELD1 FIELD2 FIELD3 FIELD4
|
||||
; EXPOSE_COLUMNS_PUT = FIELD1 FIELD2 FIELD3
|
||||
;
|
||||
|
||||
;Rest Api for table APPLICATION with (16) columns.
|
||||
[APPLICATION]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APPLICATION' with 16 columns.
|
||||
[TABLE:APPLICATION]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_UID APP_NUMBER APP_PARENT APP_STATUS PRO_UID APP_PROC_STATUS APP_PROC_CODE APP_PARALLEL APP_INIT_USER APP_CUR_USER APP_CREATE_DATE APP_INIT_DATE APP_FINISH_DATE APP_UPDATE_DATE APP_DATA APP_PIN
|
||||
EXPOSE_COLUMNS_PUT = APP_UID APP_NUMBER APP_PARENT APP_STATUS PRO_UID APP_PROC_STATUS APP_PROC_CODE APP_PARALLEL APP_INIT_USER APP_CUR_USER APP_CREATE_DATE APP_INIT_DATE APP_FINISH_DATE APP_UPDATE_DATE APP_DATA APP_PIN
|
||||
|
||||
;Rest Api for table APP_DELEGATION with (22) columns.
|
||||
[APP_DELEGATION]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_DELEGATION' with 22 columns.
|
||||
[TABLE:APP_DELEGATION]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_UID DEL_INDEX DEL_PREVIOUS PRO_UID TAS_UID USR_UID DEL_TYPE DEL_THREAD DEL_THREAD_STATUS DEL_PRIORITY DEL_DELEGATE_DATE DEL_INIT_DATE DEL_TASK_DUE_DATE DEL_FINISH_DATE DEL_DURATION DEL_QUEUE_DURATION DEL_DELAY_DURATION DEL_STARTED DEL_FINISHED DEL_DELAYED DEL_DATA APP_OVERDUE_PERCENTAGE
|
||||
EXPOSE_COLUMNS_PUT = APP_UID DEL_INDEX DEL_PREVIOUS PRO_UID TAS_UID USR_UID DEL_TYPE DEL_THREAD DEL_THREAD_STATUS DEL_PRIORITY DEL_DELEGATE_DATE DEL_INIT_DATE DEL_TASK_DUE_DATE DEL_FINISH_DATE DEL_DURATION DEL_QUEUE_DURATION DEL_DELAY_DURATION DEL_STARTED DEL_FINISHED DEL_DELAYED DEL_DATA APP_OVERDUE_PERCENTAGE
|
||||
|
||||
;Rest Api for table APP_DOCUMENT with (14) columns.
|
||||
[APP_DOCUMENT]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_DOCUMENT' with 14 columns.
|
||||
[TABLE:APP_DOCUMENT]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_DOC_UID DOC_VERSION APP_UID DEL_INDEX DOC_UID USR_UID APP_DOC_TYPE APP_DOC_CREATE_DATE APP_DOC_INDEX FOLDER_UID APP_DOC_PLUGIN APP_DOC_TAGS APP_DOC_STATUS APP_DOC_STATUS_DATE
|
||||
EXPOSE_COLUMNS_PUT = APP_DOC_UID DOC_VERSION APP_UID DEL_INDEX DOC_UID USR_UID APP_DOC_TYPE APP_DOC_CREATE_DATE APP_DOC_INDEX FOLDER_UID APP_DOC_PLUGIN APP_DOC_TAGS APP_DOC_STATUS APP_DOC_STATUS_DATE
|
||||
|
||||
;Rest Api for table APP_MESSAGE with (16) columns.
|
||||
[APP_MESSAGE]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_MESSAGE' with 16 columns.
|
||||
[TABLE:APP_MESSAGE]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_MSG_UID MSG_UID APP_UID DEL_INDEX APP_MSG_TYPE APP_MSG_SUBJECT APP_MSG_FROM APP_MSG_TO APP_MSG_BODY APP_MSG_DATE APP_MSG_CC APP_MSG_BCC APP_MSG_TEMPLATE APP_MSG_STATUS APP_MSG_ATTACH APP_MSG_SEND_DATE
|
||||
EXPOSE_COLUMNS_PUT = APP_MSG_UID MSG_UID APP_UID DEL_INDEX APP_MSG_TYPE APP_MSG_SUBJECT APP_MSG_FROM APP_MSG_TO APP_MSG_BODY APP_MSG_DATE APP_MSG_CC APP_MSG_BCC APP_MSG_TEMPLATE APP_MSG_STATUS APP_MSG_ATTACH APP_MSG_SEND_DATE
|
||||
|
||||
;Rest Api for table APP_OWNER with (3) columns.
|
||||
[APP_OWNER]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_OWNER' with 3 columns.
|
||||
[TABLE:APP_OWNER]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_UID OWN_UID USR_UID
|
||||
EXPOSE_COLUMNS_PUT = APP_UID OWN_UID USR_UID
|
||||
|
||||
;Rest Api for table CONFIGURATION with (6) columns.
|
||||
[CONFIGURATION]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'CONFIGURATION' with 6 columns.
|
||||
[TABLE:CONFIGURATION]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = CFG_UID OBJ_UID CFG_VALUE PRO_UID USR_UID APP_UID
|
||||
EXPOSE_COLUMNS_PUT = CFG_UID OBJ_UID CFG_VALUE PRO_UID USR_UID APP_UID
|
||||
|
||||
;Rest Api for table CONTENT with (5) columns.
|
||||
[CONTENT]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'CONTENT' with 5 columns.
|
||||
[TABLE:CONTENT]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = CON_CATEGORY CON_PARENT CON_ID CON_LANG CON_VALUE
|
||||
EXPOSE_COLUMNS_PUT = CON_CATEGORY CON_PARENT CON_ID CON_LANG CON_VALUE
|
||||
|
||||
;Rest Api for table DEPARTMENT with (7) columns.
|
||||
[DEPARTMENT]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'DEPARTMENT' with 7 columns.
|
||||
[TABLE:DEPARTMENT]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = DEP_UID DEP_PARENT DEP_MANAGER DEP_LOCATION DEP_STATUS DEP_REF_CODE DEP_LDAP_DN
|
||||
EXPOSE_COLUMNS_PUT = DEP_UID DEP_PARENT DEP_MANAGER DEP_LOCATION DEP_STATUS DEP_REF_CODE DEP_LDAP_DN
|
||||
|
||||
;Rest Api for table DYNAFORM with (4) columns.
|
||||
[DYNAFORM]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'DYNAFORM' with 4 columns.
|
||||
[TABLE:DYNAFORM]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = DYN_UID PRO_UID DYN_TYPE DYN_FILENAME
|
||||
EXPOSE_COLUMNS_PUT = DYN_UID PRO_UID DYN_TYPE DYN_FILENAME
|
||||
|
||||
;Rest Api for table GROUPWF with (4) columns.
|
||||
[GROUPWF]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'GROUPWF' with 4 columns.
|
||||
[TABLE:GROUPWF]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = GRP_UID GRP_STATUS GRP_LDAP_DN GRP_UX
|
||||
EXPOSE_COLUMNS_PUT = GRP_UID GRP_STATUS GRP_LDAP_DN GRP_UX
|
||||
|
||||
;Rest Api for table GROUP_USER with (2) columns.
|
||||
[GROUP_USER]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'GROUP_USER' with 2 columns.
|
||||
[TABLE:GROUP_USER]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = GRP_UID USR_UID
|
||||
EXPOSE_COLUMNS_PUT = GRP_UID USR_UID
|
||||
|
||||
;Rest Api for table HOLIDAY with (3) columns.
|
||||
[HOLIDAY]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'HOLIDAY' with 3 columns.
|
||||
[TABLE:HOLIDAY]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = HLD_UID HLD_DATE HLD_DESCRIPTION
|
||||
EXPOSE_COLUMNS_PUT = HLD_UID HLD_DATE HLD_DESCRIPTION
|
||||
|
||||
;Rest Api for table INPUT_DOCUMENT with (8) columns.
|
||||
[INPUT_DOCUMENT]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'INPUT_DOCUMENT' with 8 columns.
|
||||
[TABLE:INPUT_DOCUMENT]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = INP_DOC_UID PRO_UID INP_DOC_FORM_NEEDED INP_DOC_ORIGINAL INP_DOC_PUBLISHED INP_DOC_VERSIONING INP_DOC_DESTINATION_PATH INP_DOC_TAGS
|
||||
EXPOSE_COLUMNS_PUT = INP_DOC_UID PRO_UID INP_DOC_FORM_NEEDED INP_DOC_ORIGINAL INP_DOC_PUBLISHED INP_DOC_VERSIONING INP_DOC_DESTINATION_PATH INP_DOC_TAGS
|
||||
|
||||
;Rest Api for table ISO_COUNTRY with (3) columns.
|
||||
[ISO_COUNTRY]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'ISO_COUNTRY' with 3 columns.
|
||||
[TABLE:ISO_COUNTRY]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = IC_UID IC_NAME IC_SORT_ORDER
|
||||
EXPOSE_COLUMNS_PUT = IC_UID IC_NAME IC_SORT_ORDER
|
||||
|
||||
;Rest Api for table ISO_LOCATION with (5) columns.
|
||||
[ISO_LOCATION]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'ISO_LOCATION' with 5 columns.
|
||||
[TABLE:ISO_LOCATION]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = IC_UID IL_UID IL_NAME IL_NORMAL_NAME IS_UID
|
||||
EXPOSE_COLUMNS_PUT = IC_UID IL_UID IL_NAME IL_NORMAL_NAME IS_UID
|
||||
|
||||
;Rest Api for table ISO_SUBDIVISION with (3) columns.
|
||||
[ISO_SUBDIVISION]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'ISO_SUBDIVISION' with 3 columns.
|
||||
[TABLE:ISO_SUBDIVISION]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = IC_UID IS_UID IS_NAME
|
||||
EXPOSE_COLUMNS_PUT = IC_UID IS_UID IS_NAME
|
||||
|
||||
;Rest Api for table LANGUAGE with (7) columns.
|
||||
[LANGUAGE]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'LANGUAGE' with 7 columns.
|
||||
[TABLE:LANGUAGE]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = LAN_ID LAN_NAME LAN_NATIVE_NAME LAN_DIRECTION LAN_WEIGHT LAN_ENABLED LAN_CALENDAR
|
||||
EXPOSE_COLUMNS_PUT = LAN_ID LAN_NAME LAN_NATIVE_NAME LAN_DIRECTION LAN_WEIGHT LAN_ENABLED LAN_CALENDAR
|
||||
|
||||
;Rest Api for table LEXICO with (4) columns.
|
||||
[LEXICO]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'LEXICO' with 4 columns.
|
||||
[TABLE:LEXICO]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = LEX_TOPIC LEX_KEY LEX_VALUE LEX_CAPTION
|
||||
EXPOSE_COLUMNS_PUT = LEX_TOPIC LEX_KEY LEX_VALUE LEX_CAPTION
|
||||
|
||||
;Rest Api for table OUTPUT_DOCUMENT with (19) columns.
|
||||
[OUTPUT_DOCUMENT]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'OUTPUT_DOCUMENT' with 19 columns.
|
||||
[TABLE:OUTPUT_DOCUMENT]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = OUT_DOC_UID PRO_UID OUT_DOC_LANDSCAPE OUT_DOC_MEDIA OUT_DOC_LEFT_MARGIN OUT_DOC_RIGHT_MARGIN OUT_DOC_TOP_MARGIN OUT_DOC_BOTTOM_MARGIN OUT_DOC_GENERATE OUT_DOC_TYPE OUT_DOC_CURRENT_REVISION OUT_DOC_FIELD_MAPPING OUT_DOC_VERSIONING OUT_DOC_DESTINATION_PATH OUT_DOC_TAGS OUT_DOC_PDF_SECURITY_ENABLED OUT_DOC_PDF_SECURITY_OPEN_PASSWORD OUT_DOC_PDF_SECURITY_OWNER_PASSWORD OUT_DOC_PDF_SECURITY_PERMISSIONS
|
||||
EXPOSE_COLUMNS_PUT = OUT_DOC_UID PRO_UID OUT_DOC_LANDSCAPE OUT_DOC_MEDIA OUT_DOC_LEFT_MARGIN OUT_DOC_RIGHT_MARGIN OUT_DOC_TOP_MARGIN OUT_DOC_BOTTOM_MARGIN OUT_DOC_GENERATE OUT_DOC_TYPE OUT_DOC_CURRENT_REVISION OUT_DOC_FIELD_MAPPING OUT_DOC_VERSIONING OUT_DOC_DESTINATION_PATH OUT_DOC_TAGS OUT_DOC_PDF_SECURITY_ENABLED OUT_DOC_PDF_SECURITY_OPEN_PASSWORD OUT_DOC_PDF_SECURITY_OWNER_PASSWORD OUT_DOC_PDF_SECURITY_PERMISSIONS
|
||||
|
||||
;Rest Api for table PROCESS with (25) columns.
|
||||
[PROCESS]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'PROCESS' with 25 columns.
|
||||
[TABLE:PROCESS]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = PRO_UID PRO_PARENT PRO_TIME PRO_TIMEUNIT PRO_STATUS PRO_TYPE_DAY PRO_TYPE PRO_ASSIGNMENT PRO_SHOW_MAP PRO_SHOW_MESSAGE PRO_SHOW_DELEGATE PRO_SHOW_DYNAFORM PRO_CATEGORY PRO_SUB_CATEGORY PRO_INDUSTRY PRO_UPDATE_DATE PRO_CREATE_DATE PRO_CREATE_USER PRO_HEIGHT PRO_WIDTH PRO_TITLE_X PRO_TITLE_Y PRO_DEBUG PRO_DYNAFORMS PRO_DERIVATION_SCREEN_TPL
|
||||
EXPOSE_COLUMNS_PUT = PRO_UID PRO_PARENT PRO_TIME PRO_TIMEUNIT PRO_STATUS PRO_TYPE_DAY PRO_TYPE PRO_ASSIGNMENT PRO_SHOW_MAP PRO_SHOW_MESSAGE PRO_SHOW_DELEGATE PRO_SHOW_DYNAFORM PRO_CATEGORY PRO_SUB_CATEGORY PRO_INDUSTRY PRO_UPDATE_DATE PRO_CREATE_DATE PRO_CREATE_USER PRO_HEIGHT PRO_WIDTH PRO_TITLE_X PRO_TITLE_Y PRO_DEBUG PRO_DYNAFORMS PRO_DERIVATION_SCREEN_TPL
|
||||
|
||||
;Rest Api for table PROCESS_OWNER with (2) columns.
|
||||
[PROCESS_OWNER]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'PROCESS_OWNER' with 2 columns.
|
||||
[TABLE:PROCESS_OWNER]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = OWN_UID PRO_UID
|
||||
EXPOSE_COLUMNS_PUT = OWN_UID PRO_UID
|
||||
|
||||
;Rest Api for table REPORT_TABLE with (8) columns.
|
||||
[REPORT_TABLE]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'REPORT_TABLE' with 8 columns.
|
||||
[TABLE:REPORT_TABLE]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = REP_TAB_UID PRO_UID REP_TAB_NAME REP_TAB_TYPE REP_TAB_GRID REP_TAB_CONNECTION REP_TAB_CREATE_DATE REP_TAB_STATUS
|
||||
EXPOSE_COLUMNS_PUT = REP_TAB_UID PRO_UID REP_TAB_NAME REP_TAB_TYPE REP_TAB_GRID REP_TAB_CONNECTION REP_TAB_CREATE_DATE REP_TAB_STATUS
|
||||
|
||||
;Rest Api for table REPORT_VAR with (5) columns.
|
||||
[REPORT_VAR]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'REPORT_VAR' with 5 columns.
|
||||
[TABLE:REPORT_VAR]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = REP_VAR_UID PRO_UID REP_TAB_UID REP_VAR_NAME REP_VAR_TYPE
|
||||
EXPOSE_COLUMNS_PUT = REP_VAR_UID PRO_UID REP_TAB_UID REP_VAR_NAME REP_VAR_TYPE
|
||||
|
||||
;Rest Api for table ROUTE with (17) columns.
|
||||
[ROUTE]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'ROUTE' with 17 columns.
|
||||
[TABLE:ROUTE]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = ROU_UID ROU_PARENT PRO_UID TAS_UID ROU_NEXT_TASK ROU_CASE ROU_TYPE ROU_CONDITION ROU_TO_LAST_USER ROU_OPTIONAL ROU_SEND_EMAIL ROU_SOURCEANCHOR ROU_TARGETANCHOR ROU_TO_PORT ROU_FROM_PORT ROU_EVN_UID GAT_UID
|
||||
EXPOSE_COLUMNS_PUT = ROU_UID ROU_PARENT PRO_UID TAS_UID ROU_NEXT_TASK ROU_CASE ROU_TYPE ROU_CONDITION ROU_TO_LAST_USER ROU_OPTIONAL ROU_SEND_EMAIL ROU_SOURCEANCHOR ROU_TARGETANCHOR ROU_TO_PORT ROU_FROM_PORT ROU_EVN_UID GAT_UID
|
||||
|
||||
;Rest Api for table STEP with (8) columns.
|
||||
[STEP]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'STEP' with 8 columns.
|
||||
[TABLE:STEP]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = STEP_UID PRO_UID TAS_UID STEP_TYPE_OBJ STEP_UID_OBJ STEP_CONDITION STEP_POSITION STEP_MODE
|
||||
EXPOSE_COLUMNS_PUT = STEP_UID PRO_UID TAS_UID STEP_TYPE_OBJ STEP_UID_OBJ STEP_CONDITION STEP_POSITION STEP_MODE
|
||||
|
||||
;Rest Api for table STEP_TRIGGER with (6) columns.
|
||||
[STEP_TRIGGER]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'STEP_TRIGGER' with 6 columns.
|
||||
[TABLE:STEP_TRIGGER]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = STEP_UID TAS_UID TRI_UID ST_TYPE ST_CONDITION ST_POSITION
|
||||
EXPOSE_COLUMNS_PUT = STEP_UID TAS_UID TRI_UID ST_TYPE ST_CONDITION ST_POSITION
|
||||
|
||||
;Rest Api for table SWIMLANES_ELEMENTS with (8) columns.
|
||||
[SWIMLANES_ELEMENTS]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'SWIMLANES_ELEMENTS' with 8 columns.
|
||||
[TABLE:SWIMLANES_ELEMENTS]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = SWI_UID PRO_UID SWI_TYPE SWI_X SWI_Y SWI_WIDTH SWI_HEIGHT SWI_NEXT_UID
|
||||
EXPOSE_COLUMNS_PUT = SWI_UID PRO_UID SWI_TYPE SWI_X SWI_Y SWI_WIDTH SWI_HEIGHT SWI_NEXT_UID
|
||||
|
||||
;Rest Api for table TASK with (41) columns.
|
||||
[TASK]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'TASK' with 41 columns.
|
||||
[TABLE:TASK]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = PRO_UID TAS_UID TAS_TYPE TAS_DURATION TAS_DELAY_TYPE TAS_TEMPORIZER TAS_TYPE_DAY TAS_TIMEUNIT TAS_ALERT TAS_PRIORITY_VARIABLE TAS_ASSIGN_TYPE TAS_ASSIGN_VARIABLE TAS_MI_INSTANCE_VARIABLE TAS_MI_COMPLETE_VARIABLE TAS_ASSIGN_LOCATION TAS_ASSIGN_LOCATION_ADHOC TAS_TRANSFER_FLY TAS_LAST_ASSIGNED TAS_USER TAS_CAN_UPLOAD TAS_VIEW_UPLOAD TAS_VIEW_ADDITIONAL_DOCUMENTATION TAS_CAN_CANCEL TAS_OWNER_APP STG_UID TAS_CAN_PAUSE TAS_CAN_SEND_MESSAGE TAS_CAN_DELETE_DOCS TAS_SELF_SERVICE TAS_START TAS_TO_LAST_USER TAS_SEND_LAST_EMAIL TAS_DERIVATION TAS_POSX TAS_POSY TAS_WIDTH TAS_HEIGHT TAS_COLOR TAS_EVN_UID TAS_BOUNDARY TAS_DERIVATION_SCREEN_TPL
|
||||
EXPOSE_COLUMNS_PUT = PRO_UID TAS_UID TAS_TYPE TAS_DURATION TAS_DELAY_TYPE TAS_TEMPORIZER TAS_TYPE_DAY TAS_TIMEUNIT TAS_ALERT TAS_PRIORITY_VARIABLE TAS_ASSIGN_TYPE TAS_ASSIGN_VARIABLE TAS_MI_INSTANCE_VARIABLE TAS_MI_COMPLETE_VARIABLE TAS_ASSIGN_LOCATION TAS_ASSIGN_LOCATION_ADHOC TAS_TRANSFER_FLY TAS_LAST_ASSIGNED TAS_USER TAS_CAN_UPLOAD TAS_VIEW_UPLOAD TAS_VIEW_ADDITIONAL_DOCUMENTATION TAS_CAN_CANCEL TAS_OWNER_APP STG_UID TAS_CAN_PAUSE TAS_CAN_SEND_MESSAGE TAS_CAN_DELETE_DOCS TAS_SELF_SERVICE TAS_START TAS_TO_LAST_USER TAS_SEND_LAST_EMAIL TAS_DERIVATION TAS_POSX TAS_POSY TAS_WIDTH TAS_HEIGHT TAS_COLOR TAS_EVN_UID TAS_BOUNDARY TAS_DERIVATION_SCREEN_TPL
|
||||
|
||||
;Rest Api for table TASK_USER with (4) columns.
|
||||
[TASK_USER]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'TASK_USER' with 4 columns.
|
||||
[TABLE:TASK_USER]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = TAS_UID USR_UID TU_TYPE TU_RELATION
|
||||
EXPOSE_COLUMNS_PUT = TAS_UID USR_UID TU_TYPE TU_RELATION
|
||||
|
||||
;Rest Api for table TRANSLATION with (5) columns.
|
||||
[TRANSLATION]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'TRANSLATION' with 5 columns.
|
||||
[TABLE:TRANSLATION]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = TRN_CATEGORY TRN_ID TRN_LANG TRN_VALUE TRN_UPDATE_DATE
|
||||
EXPOSE_COLUMNS_PUT = TRN_CATEGORY TRN_ID TRN_LANG TRN_VALUE TRN_UPDATE_DATE
|
||||
|
||||
;Rest Api for table TRIGGERS with (5) columns.
|
||||
[TRIGGERS]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'TRIGGERS' with 5 columns.
|
||||
[TABLE:TRIGGERS]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = TRI_UID PRO_UID TRI_TYPE TRI_WEBBOT TRI_PARAM
|
||||
EXPOSE_COLUMNS_PUT = TRI_UID PRO_UID TRI_TYPE TRI_WEBBOT TRI_PARAM
|
||||
|
||||
;Rest Api for table USERS with (26) columns.
|
||||
[USERS]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'USERS' with 26 columns.
|
||||
[TABLE:USERS]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = USR_UID USR_USERNAME USR_PASSWORD USR_FIRSTNAME USR_LASTNAME USR_EMAIL USR_DUE_DATE USR_CREATE_DATE USR_UPDATE_DATE USR_STATUS USR_COUNTRY USR_CITY USR_LOCATION USR_ADDRESS USR_PHONE USR_FAX USR_CELLULAR USR_ZIP_CODE DEP_UID USR_POSITION USR_RESUME USR_BIRTHDAY USR_ROLE USR_REPORTS_TO USR_REPLACED_BY USR_UX
|
||||
EXPOSE_COLUMNS_PUT = USR_UID USR_USERNAME USR_PASSWORD USR_FIRSTNAME USR_LASTNAME USR_EMAIL USR_DUE_DATE USR_CREATE_DATE USR_UPDATE_DATE USR_STATUS USR_COUNTRY USR_CITY USR_LOCATION USR_ADDRESS USR_PHONE USR_FAX USR_CELLULAR USR_ZIP_CODE DEP_UID USR_POSITION USR_RESUME USR_BIRTHDAY USR_ROLE USR_REPORTS_TO USR_REPLACED_BY USR_UX
|
||||
|
||||
;Rest Api for table APP_THREAD with (5) columns.
|
||||
[APP_THREAD]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_THREAD' with 5 columns.
|
||||
[TABLE:APP_THREAD]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_UID APP_THREAD_INDEX APP_THREAD_PARENT APP_THREAD_STATUS DEL_INDEX
|
||||
EXPOSE_COLUMNS_PUT = APP_UID APP_THREAD_INDEX APP_THREAD_PARENT APP_THREAD_STATUS DEL_INDEX
|
||||
|
||||
;Rest Api for table APP_DELAY with (14) columns.
|
||||
[APP_DELAY]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_DELAY' with 14 columns.
|
||||
[TABLE:APP_DELAY]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_DELAY_UID PRO_UID APP_UID APP_THREAD_INDEX APP_DEL_INDEX APP_TYPE APP_STATUS APP_NEXT_TASK APP_DELEGATION_USER APP_ENABLE_ACTION_USER APP_ENABLE_ACTION_DATE APP_DISABLE_ACTION_USER APP_DISABLE_ACTION_DATE APP_AUTOMATIC_DISABLED_DATE
|
||||
EXPOSE_COLUMNS_PUT = APP_DELAY_UID PRO_UID APP_UID APP_THREAD_INDEX APP_DEL_INDEX APP_TYPE APP_STATUS APP_NEXT_TASK APP_DELEGATION_USER APP_ENABLE_ACTION_USER APP_ENABLE_ACTION_DATE APP_DISABLE_ACTION_USER APP_DISABLE_ACTION_DATE APP_AUTOMATIC_DISABLED_DATE
|
||||
|
||||
;Rest Api for table PROCESS_USER with (4) columns.
|
||||
[PROCESS_USER]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'PROCESS_USER' with 4 columns.
|
||||
[TABLE:PROCESS_USER]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = PU_UID PRO_UID USR_UID PU_TYPE
|
||||
EXPOSE_COLUMNS_PUT = PU_UID PRO_UID USR_UID PU_TYPE
|
||||
|
||||
;Rest Api for table SESSION with (7) columns.
|
||||
[SESSION]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'SESSION' with 7 columns.
|
||||
[TABLE:SESSION]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = SES_UID SES_STATUS USR_UID SES_REMOTE_IP SES_INIT_DATE SES_DUE_DATE SES_END_DATE
|
||||
EXPOSE_COLUMNS_PUT = SES_UID SES_STATUS USR_UID SES_REMOTE_IP SES_INIT_DATE SES_DUE_DATE SES_END_DATE
|
||||
|
||||
;Rest Api for table DB_SOURCE with (9) columns.
|
||||
[DB_SOURCE]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'DB_SOURCE' with 9 columns.
|
||||
[TABLE:DB_SOURCE]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = DBS_UID PRO_UID DBS_TYPE DBS_SERVER DBS_DATABASE_NAME DBS_USERNAME DBS_PASSWORD DBS_PORT DBS_ENCODE
|
||||
EXPOSE_COLUMNS_PUT = DBS_UID PRO_UID DBS_TYPE DBS_SERVER DBS_DATABASE_NAME DBS_USERNAME DBS_PASSWORD DBS_PORT DBS_ENCODE
|
||||
|
||||
;Rest Api for table STEP_SUPERVISOR with (5) columns.
|
||||
[STEP_SUPERVISOR]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'STEP_SUPERVISOR' with 5 columns.
|
||||
[TABLE:STEP_SUPERVISOR]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = STEP_UID PRO_UID STEP_TYPE_OBJ STEP_UID_OBJ STEP_POSITION
|
||||
EXPOSE_COLUMNS_PUT = STEP_UID PRO_UID STEP_TYPE_OBJ STEP_UID_OBJ STEP_POSITION
|
||||
|
||||
;Rest Api for table OBJECT_PERMISSION with (11) columns.
|
||||
[OBJECT_PERMISSION]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'OBJECT_PERMISSION' with 11 columns.
|
||||
[TABLE:OBJECT_PERMISSION]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = OP_UID PRO_UID TAS_UID USR_UID OP_USER_RELATION OP_TASK_SOURCE OP_PARTICIPATE OP_OBJ_TYPE OP_OBJ_UID OP_ACTION OP_CASE_STATUS
|
||||
EXPOSE_COLUMNS_PUT = OP_UID PRO_UID TAS_UID USR_UID OP_USER_RELATION OP_TASK_SOURCE OP_PARTICIPATE OP_OBJ_TYPE OP_OBJ_UID OP_ACTION OP_CASE_STATUS
|
||||
|
||||
;Rest Api for table CASE_TRACKER with (4) columns.
|
||||
[CASE_TRACKER]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'CASE_TRACKER' with 4 columns.
|
||||
[TABLE:CASE_TRACKER]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = PRO_UID CT_MAP_TYPE CT_DERIVATION_HISTORY CT_MESSAGE_HISTORY
|
||||
EXPOSE_COLUMNS_PUT = PRO_UID CT_MAP_TYPE CT_DERIVATION_HISTORY CT_MESSAGE_HISTORY
|
||||
|
||||
;Rest Api for table CASE_TRACKER_OBJECT with (6) columns.
|
||||
[CASE_TRACKER_OBJECT]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'CASE_TRACKER_OBJECT' with 6 columns.
|
||||
[TABLE:CASE_TRACKER_OBJECT]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = CTO_UID PRO_UID CTO_TYPE_OBJ CTO_UID_OBJ CTO_CONDITION CTO_POSITION
|
||||
EXPOSE_COLUMNS_PUT = CTO_UID PRO_UID CTO_TYPE_OBJ CTO_UID_OBJ CTO_CONDITION CTO_POSITION
|
||||
|
||||
;Rest Api for table STAGE with (5) columns.
|
||||
[STAGE]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'STAGE' with 5 columns.
|
||||
[TABLE:STAGE]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = STG_UID PRO_UID STG_POSX STG_POSY STG_INDEX
|
||||
EXPOSE_COLUMNS_PUT = STG_UID PRO_UID STG_POSX STG_POSY STG_INDEX
|
||||
|
||||
;Rest Api for table SUB_PROCESS with (12) columns.
|
||||
[SUB_PROCESS]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'SUB_PROCESS' with 12 columns.
|
||||
[TABLE:SUB_PROCESS]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = SP_UID PRO_UID TAS_UID PRO_PARENT TAS_PARENT SP_TYPE SP_SYNCHRONOUS SP_SYNCHRONOUS_TYPE SP_SYNCHRONOUS_WAIT SP_VARIABLES_OUT SP_VARIABLES_IN SP_GRID_IN
|
||||
EXPOSE_COLUMNS_PUT = SP_UID PRO_UID TAS_UID PRO_PARENT TAS_PARENT SP_TYPE SP_SYNCHRONOUS SP_SYNCHRONOUS_TYPE SP_SYNCHRONOUS_WAIT SP_VARIABLES_OUT SP_VARIABLES_IN SP_GRID_IN
|
||||
|
||||
;Rest Api for table SUB_APPLICATION with (9) columns.
|
||||
[SUB_APPLICATION]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'SUB_APPLICATION' with 9 columns.
|
||||
[TABLE:SUB_APPLICATION]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_UID APP_PARENT DEL_INDEX_PARENT DEL_THREAD_PARENT SA_STATUS SA_VALUES_OUT SA_VALUES_IN SA_INIT_DATE SA_FINISH_DATE
|
||||
EXPOSE_COLUMNS_PUT = APP_UID APP_PARENT DEL_INDEX_PARENT DEL_THREAD_PARENT SA_STATUS SA_VALUES_OUT SA_VALUES_IN SA_INIT_DATE SA_FINISH_DATE
|
||||
|
||||
;Rest Api for table LOGIN_LOG with (8) columns.
|
||||
[LOGIN_LOG]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'LOGIN_LOG' with 8 columns.
|
||||
[TABLE:LOGIN_LOG]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = LOG_UID LOG_STATUS LOG_IP LOG_SID LOG_INIT_DATE LOG_END_DATE LOG_CLIENT_HOSTNAME USR_UID
|
||||
EXPOSE_COLUMNS_PUT = LOG_UID LOG_STATUS LOG_IP LOG_SID LOG_INIT_DATE LOG_END_DATE LOG_CLIENT_HOSTNAME USR_UID
|
||||
|
||||
;Rest Api for table USERS_PROPERTIES with (4) columns.
|
||||
[USERS_PROPERTIES]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'USERS_PROPERTIES' with 4 columns.
|
||||
[TABLE:USERS_PROPERTIES]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = USR_UID USR_LAST_UPDATE_DATE USR_LOGGED_NEXT_TIME USR_PASSWORD_HISTORY
|
||||
EXPOSE_COLUMNS_PUT = USR_UID USR_LAST_UPDATE_DATE USR_LOGGED_NEXT_TIME USR_PASSWORD_HISTORY
|
||||
|
||||
;Rest Api for table ADDITIONAL_TABLES with (16) columns.
|
||||
[ADDITIONAL_TABLES]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'ADDITIONAL_TABLES' with 16 columns.
|
||||
[TABLE:ADDITIONAL_TABLES]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = ADD_TAB_UID ADD_TAB_NAME ADD_TAB_CLASS_NAME ADD_TAB_DESCRIPTION ADD_TAB_SDW_LOG_INSERT ADD_TAB_SDW_LOG_UPDATE ADD_TAB_SDW_LOG_DELETE ADD_TAB_SDW_LOG_SELECT ADD_TAB_SDW_MAX_LENGTH ADD_TAB_SDW_AUTO_DELETE ADD_TAB_PLG_UID DBS_UID PRO_UID ADD_TAB_TYPE ADD_TAB_GRID ADD_TAB_TAG
|
||||
EXPOSE_COLUMNS_PUT = ADD_TAB_UID ADD_TAB_NAME ADD_TAB_CLASS_NAME ADD_TAB_DESCRIPTION ADD_TAB_SDW_LOG_INSERT ADD_TAB_SDW_LOG_UPDATE ADD_TAB_SDW_LOG_DELETE ADD_TAB_SDW_LOG_SELECT ADD_TAB_SDW_MAX_LENGTH ADD_TAB_SDW_AUTO_DELETE ADD_TAB_PLG_UID DBS_UID PRO_UID ADD_TAB_TYPE ADD_TAB_GRID ADD_TAB_TAG
|
||||
|
||||
;Rest Api for table FIELDS with (15) columns.
|
||||
[FIELDS]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'FIELDS' with 15 columns.
|
||||
[TABLE:FIELDS]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = FLD_UID ADD_TAB_UID FLD_INDEX FLD_NAME FLD_DESCRIPTION FLD_TYPE FLD_SIZE FLD_NULL FLD_AUTO_INCREMENT FLD_KEY FLD_FOREIGN_KEY FLD_FOREIGN_KEY_TABLE FLD_DYN_NAME FLD_DYN_UID FLD_FILTER
|
||||
EXPOSE_COLUMNS_PUT = FLD_UID ADD_TAB_UID FLD_INDEX FLD_NAME FLD_DESCRIPTION FLD_TYPE FLD_SIZE FLD_NULL FLD_AUTO_INCREMENT FLD_KEY FLD_FOREIGN_KEY FLD_FOREIGN_KEY_TABLE FLD_DYN_NAME FLD_DYN_UID FLD_FILTER
|
||||
|
||||
;Rest Api for table SHADOW_TABLE with (7) columns.
|
||||
[SHADOW_TABLE]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'SHADOW_TABLE' with 7 columns.
|
||||
[TABLE:SHADOW_TABLE]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = SHD_UID ADD_TAB_UID SHD_ACTION SHD_DETAILS USR_UID APP_UID SHD_DATE
|
||||
EXPOSE_COLUMNS_PUT = SHD_UID ADD_TAB_UID SHD_ACTION SHD_DETAILS USR_UID APP_UID SHD_DATE
|
||||
|
||||
;Rest Api for table EVENT with (20) columns.
|
||||
[EVENT]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'EVENT' with 20 columns.
|
||||
[TABLE:EVENT]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = EVN_UID PRO_UID EVN_STATUS EVN_WHEN_OCCURS EVN_RELATED_TO TAS_UID EVN_TAS_UID_FROM EVN_TAS_UID_TO EVN_TAS_ESTIMATED_DURATION EVN_TIME_UNIT EVN_WHEN EVN_MAX_ATTEMPTS EVN_ACTION EVN_CONDITIONS EVN_ACTION_PARAMETERS TRI_UID EVN_POSX EVN_POSY EVN_TYPE TAS_EVN_UID
|
||||
EXPOSE_COLUMNS_PUT = EVN_UID PRO_UID EVN_STATUS EVN_WHEN_OCCURS EVN_RELATED_TO TAS_UID EVN_TAS_UID_FROM EVN_TAS_UID_TO EVN_TAS_ESTIMATED_DURATION EVN_TIME_UNIT EVN_WHEN EVN_MAX_ATTEMPTS EVN_ACTION EVN_CONDITIONS EVN_ACTION_PARAMETERS TRI_UID EVN_POSX EVN_POSY EVN_TYPE TAS_EVN_UID
|
||||
|
||||
;Rest Api for table GATEWAY with (7) columns.
|
||||
[GATEWAY]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'GATEWAY' with 7 columns.
|
||||
[TABLE:GATEWAY]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = GAT_UID PRO_UID TAS_UID GAT_NEXT_TASK GAT_X GAT_Y GAT_TYPE
|
||||
EXPOSE_COLUMNS_PUT = GAT_UID PRO_UID TAS_UID GAT_NEXT_TASK GAT_X GAT_Y GAT_TYPE
|
||||
|
||||
;Rest Api for table APP_EVENT with (7) columns.
|
||||
[APP_EVENT]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_EVENT' with 7 columns.
|
||||
[TABLE:APP_EVENT]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_UID DEL_INDEX EVN_UID APP_EVN_ACTION_DATE APP_EVN_ATTEMPTS APP_EVN_LAST_EXECUTION_DATE APP_EVN_STATUS
|
||||
EXPOSE_COLUMNS_PUT = APP_UID DEL_INDEX EVN_UID APP_EVN_ACTION_DATE APP_EVN_ATTEMPTS APP_EVN_LAST_EXECUTION_DATE APP_EVN_STATUS
|
||||
|
||||
;Rest Api for table APP_CACHE_VIEW with (30) columns.
|
||||
[APP_CACHE_VIEW]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_CACHE_VIEW' with 30 columns.
|
||||
[TABLE:APP_CACHE_VIEW]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_UID DEL_INDEX APP_NUMBER APP_STATUS USR_UID PREVIOUS_USR_UID TAS_UID PRO_UID DEL_DELEGATE_DATE DEL_INIT_DATE DEL_TASK_DUE_DATE DEL_FINISH_DATE DEL_THREAD_STATUS APP_THREAD_STATUS APP_TITLE APP_PRO_TITLE APP_TAS_TITLE APP_CURRENT_USER APP_DEL_PREVIOUS_USER DEL_PRIORITY DEL_DURATION DEL_QUEUE_DURATION DEL_DELAY_DURATION DEL_STARTED DEL_FINISHED DEL_DELAYED APP_CREATE_DATE APP_FINISH_DATE APP_UPDATE_DATE APP_OVERDUE_PERCENTAGE
|
||||
EXPOSE_COLUMNS_PUT = APP_UID DEL_INDEX APP_NUMBER APP_STATUS USR_UID PREVIOUS_USR_UID TAS_UID PRO_UID DEL_DELEGATE_DATE DEL_INIT_DATE DEL_TASK_DUE_DATE DEL_FINISH_DATE DEL_THREAD_STATUS APP_THREAD_STATUS APP_TITLE APP_PRO_TITLE APP_TAS_TITLE APP_CURRENT_USER APP_DEL_PREVIOUS_USER DEL_PRIORITY DEL_DURATION DEL_QUEUE_DURATION DEL_DELAY_DURATION DEL_STARTED DEL_FINISHED DEL_DELAYED APP_CREATE_DATE APP_FINISH_DATE APP_UPDATE_DATE APP_OVERDUE_PERCENTAGE
|
||||
|
||||
;Rest Api for table DIM_TIME_DELEGATE with (8) columns.
|
||||
[DIM_TIME_DELEGATE]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'DIM_TIME_DELEGATE' with 8 columns.
|
||||
[TABLE:DIM_TIME_DELEGATE]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = TIME_ID MONTH_ID QTR_ID YEAR_ID MONTH_NAME MONTH_DESC QTR_NAME QTR_DESC
|
||||
EXPOSE_COLUMNS_PUT = TIME_ID MONTH_ID QTR_ID YEAR_ID MONTH_NAME MONTH_DESC QTR_NAME QTR_DESC
|
||||
|
||||
;Rest Api for table DIM_TIME_COMPLETE with (8) columns.
|
||||
[DIM_TIME_COMPLETE]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'DIM_TIME_COMPLETE' with 8 columns.
|
||||
[TABLE:DIM_TIME_COMPLETE]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = TIME_ID MONTH_ID QTR_ID YEAR_ID MONTH_NAME MONTH_DESC QTR_NAME QTR_DESC
|
||||
EXPOSE_COLUMNS_PUT = TIME_ID MONTH_ID QTR_ID YEAR_ID MONTH_NAME MONTH_DESC QTR_NAME QTR_DESC
|
||||
|
||||
;Rest Api for table APP_HISTORY with (9) columns.
|
||||
[APP_HISTORY]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_HISTORY' with 9 columns.
|
||||
[TABLE:APP_HISTORY]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_UID DEL_INDEX PRO_UID TAS_UID DYN_UID USR_UID APP_STATUS HISTORY_DATE HISTORY_DATA
|
||||
EXPOSE_COLUMNS_PUT = APP_UID DEL_INDEX PRO_UID TAS_UID DYN_UID USR_UID APP_STATUS HISTORY_DATE HISTORY_DATA
|
||||
|
||||
;Rest Api for table APP_FOLDER with (5) columns.
|
||||
[APP_FOLDER]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_FOLDER' with 5 columns.
|
||||
[TABLE:APP_FOLDER]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = FOLDER_UID FOLDER_PARENT_UID FOLDER_NAME FOLDER_CREATE_DATE FOLDER_UPDATE_DATE
|
||||
EXPOSE_COLUMNS_PUT = FOLDER_UID FOLDER_PARENT_UID FOLDER_NAME FOLDER_CREATE_DATE FOLDER_UPDATE_DATE
|
||||
|
||||
;Rest Api for table FIELD_CONDITION with (8) columns.
|
||||
[FIELD_CONDITION]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'FIELD_CONDITION' with 8 columns.
|
||||
[TABLE:FIELD_CONDITION]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = FCD_UID FCD_FUNCTION FCD_FIELDS FCD_CONDITION FCD_EVENTS FCD_EVENT_OWNERS FCD_STATUS FCD_DYN_UID
|
||||
EXPOSE_COLUMNS_PUT = FCD_UID FCD_FUNCTION FCD_FIELDS FCD_CONDITION FCD_EVENTS FCD_EVENT_OWNERS FCD_STATUS FCD_DYN_UID
|
||||
|
||||
;Rest Api for table LOG_CASES_SCHEDULER with (10) columns.
|
||||
[LOG_CASES_SCHEDULER]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'LOG_CASES_SCHEDULER' with 10 columns.
|
||||
[TABLE:LOG_CASES_SCHEDULER]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = LOG_CASE_UID PRO_UID TAS_UID USR_NAME EXEC_DATE EXEC_HOUR RESULT SCH_UID WS_CREATE_CASE_STATUS WS_ROUTE_CASE_STATUS
|
||||
EXPOSE_COLUMNS_PUT = LOG_CASE_UID PRO_UID TAS_UID USR_NAME EXEC_DATE EXEC_HOUR RESULT SCH_UID WS_CREATE_CASE_STATUS WS_ROUTE_CASE_STATUS
|
||||
|
||||
;Rest Api for table CASE_SCHEDULER with (25) columns.
|
||||
[CASE_SCHEDULER]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'CASE_SCHEDULER' with 25 columns.
|
||||
[TABLE:CASE_SCHEDULER]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = SCH_UID SCH_DEL_USER_NAME SCH_DEL_USER_PASS SCH_DEL_USER_UID SCH_NAME PRO_UID TAS_UID SCH_TIME_NEXT_RUN SCH_LAST_RUN_TIME SCH_STATE SCH_LAST_STATE USR_UID SCH_OPTION SCH_START_TIME SCH_START_DATE SCH_DAYS_PERFORM_TASK SCH_EVERY_DAYS SCH_WEEK_DAYS SCH_START_DAY SCH_MONTHS SCH_END_DATE SCH_REPEAT_EVERY SCH_REPEAT_UNTIL SCH_REPEAT_STOP_IF_RUNNING CASE_SH_PLUGIN_UID
|
||||
EXPOSE_COLUMNS_PUT = SCH_UID SCH_DEL_USER_NAME SCH_DEL_USER_PASS SCH_DEL_USER_UID SCH_NAME PRO_UID TAS_UID SCH_TIME_NEXT_RUN SCH_LAST_RUN_TIME SCH_STATE SCH_LAST_STATE USR_UID SCH_OPTION SCH_START_TIME SCH_START_DATE SCH_DAYS_PERFORM_TASK SCH_EVERY_DAYS SCH_WEEK_DAYS SCH_START_DAY SCH_MONTHS SCH_END_DATE SCH_REPEAT_EVERY SCH_REPEAT_UNTIL SCH_REPEAT_STOP_IF_RUNNING CASE_SH_PLUGIN_UID
|
||||
|
||||
;Rest Api for table CALENDAR_DEFINITION with (7) columns.
|
||||
[CALENDAR_DEFINITION]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'CALENDAR_DEFINITION' with 7 columns.
|
||||
[TABLE:CALENDAR_DEFINITION]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = CALENDAR_UID CALENDAR_NAME CALENDAR_CREATE_DATE CALENDAR_UPDATE_DATE CALENDAR_WORK_DAYS CALENDAR_DESCRIPTION CALENDAR_STATUS
|
||||
EXPOSE_COLUMNS_PUT = CALENDAR_UID CALENDAR_NAME CALENDAR_CREATE_DATE CALENDAR_UPDATE_DATE CALENDAR_WORK_DAYS CALENDAR_DESCRIPTION CALENDAR_STATUS
|
||||
|
||||
;Rest Api for table CALENDAR_BUSINESS_HOURS with (4) columns.
|
||||
[CALENDAR_BUSINESS_HOURS]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'CALENDAR_BUSINESS_HOURS' with 4 columns.
|
||||
[TABLE:CALENDAR_BUSINESS_HOURS]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = CALENDAR_UID CALENDAR_BUSINESS_DAY CALENDAR_BUSINESS_START CALENDAR_BUSINESS_END
|
||||
EXPOSE_COLUMNS_PUT = CALENDAR_UID CALENDAR_BUSINESS_DAY CALENDAR_BUSINESS_START CALENDAR_BUSINESS_END
|
||||
|
||||
;Rest Api for table CALENDAR_HOLIDAYS with (4) columns.
|
||||
[CALENDAR_HOLIDAYS]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'CALENDAR_HOLIDAYS' with 4 columns.
|
||||
[TABLE:CALENDAR_HOLIDAYS]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = CALENDAR_UID CALENDAR_HOLIDAY_NAME CALENDAR_HOLIDAY_START CALENDAR_HOLIDAY_END
|
||||
EXPOSE_COLUMNS_PUT = CALENDAR_UID CALENDAR_HOLIDAY_NAME CALENDAR_HOLIDAY_START CALENDAR_HOLIDAY_END
|
||||
|
||||
;Rest Api for table CALENDAR_ASSIGNMENTS with (3) columns.
|
||||
[CALENDAR_ASSIGNMENTS]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'CALENDAR_ASSIGNMENTS' with 3 columns.
|
||||
[TABLE:CALENDAR_ASSIGNMENTS]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = OBJECT_UID CALENDAR_UID OBJECT_TYPE
|
||||
EXPOSE_COLUMNS_PUT = OBJECT_UID CALENDAR_UID OBJECT_TYPE
|
||||
|
||||
;Rest Api for table PROCESS_CATEGORY with (4) columns.
|
||||
[PROCESS_CATEGORY]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'PROCESS_CATEGORY' with 4 columns.
|
||||
[TABLE:PROCESS_CATEGORY]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = CATEGORY_UID CATEGORY_PARENT CATEGORY_NAME CATEGORY_ICON
|
||||
EXPOSE_COLUMNS_PUT = CATEGORY_UID CATEGORY_PARENT CATEGORY_NAME CATEGORY_ICON
|
||||
|
||||
;Rest Api for table APP_NOTES with (10) columns.
|
||||
[APP_NOTES]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_NOTES' with 10 columns.
|
||||
[TABLE:APP_NOTES]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_UID USR_UID NOTE_DATE NOTE_CONTENT NOTE_TYPE NOTE_AVAILABILITY NOTE_ORIGIN_OBJ NOTE_AFFECTED_OBJ1 NOTE_AFFECTED_OBJ2 NOTE_RECIPIENTS
|
||||
EXPOSE_COLUMNS_PUT = APP_UID USR_UID NOTE_DATE NOTE_CONTENT NOTE_TYPE NOTE_AVAILABILITY NOTE_ORIGIN_OBJ NOTE_AFFECTED_OBJ1 NOTE_AFFECTED_OBJ2 NOTE_RECIPIENTS
|
||||
|
||||
;Rest Api for table DASHLET with (8) columns.
|
||||
[DASHLET]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'DASHLET' with 8 columns.
|
||||
[TABLE:DASHLET]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = DAS_UID DAS_CLASS DAS_TITLE DAS_DESCRIPTION DAS_VERSION DAS_CREATE_DATE DAS_UPDATE_DATE DAS_STATUS
|
||||
EXPOSE_COLUMNS_PUT = DAS_UID DAS_CLASS DAS_TITLE DAS_DESCRIPTION DAS_VERSION DAS_CREATE_DATE DAS_UPDATE_DATE DAS_STATUS
|
||||
|
||||
;Rest Api for table DASHLET_INSTANCE with (8) columns.
|
||||
[DASHLET_INSTANCE]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'DASHLET_INSTANCE' with 8 columns.
|
||||
[TABLE:DASHLET_INSTANCE]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = DAS_INS_UID DAS_UID DAS_INS_OWNER_TYPE DAS_INS_OWNER_UID DAS_INS_ADDITIONAL_PROPERTIES DAS_INS_CREATE_DATE DAS_INS_UPDATE_DATE DAS_INS_STATUS
|
||||
EXPOSE_COLUMNS_PUT = DAS_INS_UID DAS_UID DAS_INS_OWNER_TYPE DAS_INS_OWNER_UID DAS_INS_ADDITIONAL_PROPERTIES DAS_INS_CREATE_DATE DAS_INS_UPDATE_DATE DAS_INS_STATUS
|
||||
|
||||
;Rest Api for table APP_SOLR_QUEUE with (2) columns.
|
||||
[APP_SOLR_QUEUE]
|
||||
; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE
|
||||
;Table 'APP_SOLR_QUEUE' with 2 columns.
|
||||
[TABLE:APP_SOLR_QUEUE]
|
||||
ALLOW_METHODS = GET
|
||||
; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.
|
||||
EXPOSE_COLUMNS_GET = *
|
||||
EXPOSE_COLUMNS_POST = APP_UID APP_UPDATED
|
||||
EXPOSE_COLUMNS_PUT = APP_UID APP_UPDATED
|
||||
|
||||
@@ -2,54 +2,123 @@
|
||||
/**
|
||||
* Class Service_Rest_RestTool
|
||||
*
|
||||
* This tool generate a rest-config.ini file and build rest crud api for 'Restler' lib.
|
||||
* This tool generates a rest-config.ini file and build rest crud api for 'Restler' lib.
|
||||
* Class since: Aug 22, 2012
|
||||
*
|
||||
* @author Erik Amaru Ortiz <aortiz.erik@gmail.com>
|
||||
*/
|
||||
class Service_Rest_RestTool
|
||||
{
|
||||
/**
|
||||
* Stores absolute file path of rest configuration ini file (rest-config.ini)
|
||||
* @var string
|
||||
*/
|
||||
protected $configFile = '';
|
||||
|
||||
/**
|
||||
* Stores configuration loaded from configuration ini file
|
||||
* @var array
|
||||
*/
|
||||
protected $config = array();
|
||||
|
||||
/**
|
||||
* Stores absolute filename patgh of database xml schema
|
||||
* @var string
|
||||
*/
|
||||
protected $dbXmlSchemaFile = '';
|
||||
|
||||
/**
|
||||
* Stores information of pmos tables
|
||||
* @var array
|
||||
*/
|
||||
protected $dbInfo = array();
|
||||
|
||||
/**
|
||||
* Stores obsolute base path to output generated files
|
||||
* @var string
|
||||
*/
|
||||
protected $basePath = '';
|
||||
|
||||
public function __construct()
|
||||
/**
|
||||
* Init method to initialize the class after previous configurations
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
$this->basePath = PATH_CORE;
|
||||
$this->dbXmlSchemaFile = 'config/schema.xml';
|
||||
$this->configFile = 'config/rest-config.ini';
|
||||
self::out('ProcessMaker Rest Crud Api Generator Tool v1.0', 'success', true);
|
||||
echo PHP_EOL;
|
||||
|
||||
// configuring paths by default if there were not configured before.
|
||||
if (empty($this->dbXmlSchemaFile)) {
|
||||
$this->dbXmlSchemaFile = $this->basePath . 'config/schema.xml';
|
||||
}
|
||||
if (empty($this->configFile)) {
|
||||
$this->configFile = $this->basePath . 'config/rest-config.ini';
|
||||
}
|
||||
}
|
||||
|
||||
public function setBasePath($path)
|
||||
public function setConfigFile($configFile)
|
||||
{
|
||||
$this->basePath = $path;
|
||||
$this->configFile = $configFile;
|
||||
}
|
||||
|
||||
public function setDbXmlSchemaFile($dbXmlSchemaFile)
|
||||
{
|
||||
$this->dbXmlSchemaFile = $dbXmlSchemaFile;
|
||||
}
|
||||
|
||||
public function setBasePath($basePath)
|
||||
{
|
||||
$this->basePath = $basePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load rest ini. configuration
|
||||
*/
|
||||
protected function loadConfig()
|
||||
{
|
||||
$configFile = $this->basePath . $this->configFile;
|
||||
|
||||
if (! file_exists($configFile)) {
|
||||
throw new Exception(sprintf("Runtime Error: Configuration file '%s' doesn't exist!", $configFile));
|
||||
if (! file_exists($this->configFile)) {
|
||||
throw new Exception(sprintf("Runtime Error: Configuration file '%s' doesn't exist!", $this->configFile));
|
||||
}
|
||||
|
||||
$this->config = @parse_ini_file($configFile, true);
|
||||
self::out('Loading config from: ', 'info', false);
|
||||
echo $this->configFile . "\n";
|
||||
|
||||
$config = @parse_ini_file($this->configFile, true);
|
||||
|
||||
// parse composed sections names like [TABLE:SOME_TABLE]
|
||||
foreach ($config as $key => $value) {
|
||||
$sectionParts = explode(':', $key);
|
||||
|
||||
if (count($sectionParts) == 2 && strtolower($sectionParts[0]) == 'table') {
|
||||
$this->config['_tables'][$sectionParts[1]] = $value;
|
||||
} else {
|
||||
$this->config[$key] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Load db schema from xml file
|
||||
*/
|
||||
protected function loadDbXmlSchema()
|
||||
{
|
||||
$dbXmlSchemaFile = $this->basePath . $this->dbXmlSchemaFile;
|
||||
|
||||
if (! file_exists($dbXmlSchemaFile)) {
|
||||
throw new Exception(sprintf("Runtime Error: Configuration file '%s' doesn't exist!", $dbXmlSchemaFile));
|
||||
if (! file_exists($this->dbXmlSchemaFile)) {
|
||||
throw new Exception(sprintf(
|
||||
"Runtime Error: Configuration file '%s' doesn't exist!", $this->dbXmlSchemaFile
|
||||
));
|
||||
}
|
||||
|
||||
self::out('Loading Xml Schema from: ', 'info', false);
|
||||
echo $this->dbXmlSchemaFile . "\n";
|
||||
|
||||
$doc = new Xml_DOMDocumentExtended();
|
||||
$doc->load($dbXmlSchemaFile);
|
||||
$doc->load($this->dbXmlSchemaFile);
|
||||
|
||||
// dump to array
|
||||
$data = $doc->toArray();
|
||||
$tables = $data['database']['table'];
|
||||
|
||||
// process just relevant information
|
||||
foreach ($tables as $table) {
|
||||
$this->dbInfo[$table['@name']]['pKeys'] = array();
|
||||
$this->dbInfo[$table['@name']]['columns'] = array();
|
||||
@@ -69,25 +138,73 @@ class Service_Rest_RestTool
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build Rest configuration file
|
||||
* @param string $filename configutaion filename to be generated
|
||||
*/
|
||||
public function buildConfigIni($filename = '')
|
||||
{
|
||||
$this->loadDbXmlSchema();
|
||||
|
||||
$configFile = empty($filename) ? $this->basePath . $this->configFile : $filename;
|
||||
$configIniStr = "; -= ProcessMaker RestFul services configuration =-\n";
|
||||
$configIniStr .= "\n";
|
||||
$configIniStr .= "; On this configuration file you can customize some aspects to expose on rest service.\n";
|
||||
$configIniStr .= "; Configure what methods (GET,POST,PUT,DELETE) should be exposed by ProcessMaker Rest server.\n";
|
||||
$configIniStr .= "; Configure for each table/method what columns sould be exposed.\n";
|
||||
$configIniStr .= "\n";
|
||||
$configIniStr = <<<EOT
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; -= ProcessMaker RestFul services configuration =- ;
|
||||
; ;
|
||||
; On this configuration file you can customize the Processmaker Rest Service. ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; Rest Service Configuration ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
enable_service = true
|
||||
|
||||
; add headers to rest server responses
|
||||
[HEADERS]
|
||||
; Enable this header to allow "Cross Domain AJAX" requests;
|
||||
; This works because processmaker is handling correctly requests with method 'OPTIONS'
|
||||
; that automatically is sent by a client using XmlHttpRequest or similar.
|
||||
;Access-Control-Allow-Origin = *
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; DB Tables Crud generation Config ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;
|
||||
; This configuration section is used by ./rest-gen command to build the Rest Crud Api
|
||||
;
|
||||
; Configure what methods GET, POST, PUT, DELETE should be exposed.
|
||||
; Configure for each table/method what columns sould be exposed.
|
||||
;
|
||||
; Configuration for each table must starts with a section like:
|
||||
; [TABLE:<table-name>]
|
||||
;
|
||||
; inside of each section there are two config keys:
|
||||
;
|
||||
; "ALLOW_METHODS" -> Use this param to set allowed methods (separeted by a single space).
|
||||
; Complete example:
|
||||
; ALLOW_METHODS = GET POST PUT DELETE
|
||||
;
|
||||
; The others params are: "EXPOSE_COLUMNS_GET", "EXPOSE_COLUMNS_POST" and "EXPOSE_COLUMNS_PUT"
|
||||
; this params are used to configure the columns that should be exposed;
|
||||
; wildcard '*' can be used to speccify all columns.
|
||||
;
|
||||
; Example:
|
||||
;
|
||||
;[TABLE:MY_TABLE]
|
||||
; ALLOW_METHODS = GET POST PUT DELETE
|
||||
; EXPOSE_COLUMNS_GET = *
|
||||
; EXPOSE_COLUMNS_POST = FIELD1 FIELD2 FIELD3 FIELD4
|
||||
; EXPOSE_COLUMNS_PUT = FIELD1 FIELD2 FIELD3
|
||||
;
|
||||
EOT;
|
||||
$configIniStr .= "\n\n";
|
||||
|
||||
foreach ($this->dbInfo as $table => $columns) {
|
||||
$strColumns = implode(' ', $columns['columns']);
|
||||
$configIniStr .= ";Rest Api for table $table with (".count($columns['columns']).") columns.\n";
|
||||
$configIniStr .= "[$table]\n";
|
||||
$configIniStr .= " ; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE\n";
|
||||
$configIniStr .= ";Table '$table' with ".count($columns['columns'])." columns.\n";
|
||||
$configIniStr .= "[TABLE:$table]\n";
|
||||
$configIniStr .= " ALLOW_METHODS = GET\n";
|
||||
$configIniStr .= " ; Params to set columns that should be exposed, you can use wildcard '*' to specify all columns.\n";
|
||||
$configIniStr .= " EXPOSE_COLUMNS_GET = *\n";
|
||||
$configIniStr .= " EXPOSE_COLUMNS_POST = ".$strColumns."\n";
|
||||
$configIniStr .= " EXPOSE_COLUMNS_PUT = ".$strColumns."\n";
|
||||
@@ -99,7 +216,10 @@ class Service_Rest_RestTool
|
||||
return $configFile;
|
||||
}
|
||||
|
||||
public function buildApi()
|
||||
/**
|
||||
* Build Rest Crud Api
|
||||
*/
|
||||
public function buildCrudApi()
|
||||
{
|
||||
/**
|
||||
* load configuration from /engine/config/rest-config.ini and
|
||||
@@ -108,6 +228,23 @@ class Service_Rest_RestTool
|
||||
$this->loadConfig();
|
||||
$this->loadDbXmlSchema();
|
||||
|
||||
self::out('Output folder: ', 'info', false);
|
||||
echo $this->basePath . "services/rest/crud";
|
||||
|
||||
if (! is_dir($this->basePath . "services/rest/crud/")) {
|
||||
G::mk_dir($this->basePath . "services/rest/crud/");
|
||||
echo ' (created)';
|
||||
}
|
||||
|
||||
echo "\n\n";
|
||||
|
||||
if (! is_writable($this->basePath . "services/rest/crud/")) {
|
||||
throw new Exception(fprintf(
|
||||
"Runtime Error: Output folder '%s' is not writable.",
|
||||
$this->basePath . "services/rest/crud/"
|
||||
));
|
||||
}
|
||||
|
||||
Haanga::configure(array(
|
||||
'template_dir' => dirname(__FILE__) . '/templates/',
|
||||
'cache_dir' => sys_get_temp_dir() . '/haanga_cache/',
|
||||
@@ -121,11 +258,11 @@ class Service_Rest_RestTool
|
||||
)
|
||||
));
|
||||
|
||||
foreach ($this->config as $table => $conf) {
|
||||
$c = 0;
|
||||
foreach ($this->config['_tables'] as $table => $conf) {
|
||||
$classname = self::camelize($table, 'class');
|
||||
$allowedMethods = explode(' ', $conf['ALLOW_METHODS']);
|
||||
$methods = '';
|
||||
//$allowedMethods = array('DELETE');
|
||||
|
||||
foreach ($allowedMethods as $method) {
|
||||
// validation for a valid method
|
||||
@@ -231,11 +368,22 @@ class Service_Rest_RestTool
|
||||
'methods' => $methods
|
||||
), true);
|
||||
|
||||
echo "saving $classname.php\n";
|
||||
//echo "File #$c - $classname.php saved!\n";
|
||||
++$c;
|
||||
file_put_contents($this->basePath . "services/rest/crud/$classname.php", $classContent);
|
||||
}
|
||||
|
||||
printf("Done, generated %s Rest Class Files.\n\n", self::out("($c)", 'success', false, true));
|
||||
}
|
||||
|
||||
/**
|
||||
* Camilize a string
|
||||
* Example: some_underscored_string to SomeUnderscoredString
|
||||
*
|
||||
* @param string $str string to camelze
|
||||
* @param string $type if the type is 'var' do not capitalize the first character.
|
||||
* @return string camelized string
|
||||
*/
|
||||
protected static function camelize($str, $type = 'var')
|
||||
{
|
||||
if (is_array($str)) {
|
||||
@@ -253,6 +401,16 @@ class Service_Rest_RestTool
|
||||
return $str;
|
||||
}
|
||||
|
||||
/**
|
||||
* Try convert a string to its native variable type
|
||||
* Example:
|
||||
* for a string 'true' => true
|
||||
* for a string 'false' => false
|
||||
* for a string '1.0' => 1.0
|
||||
*
|
||||
* @param string $value string to try cast to its native variable type
|
||||
* @return mixed value converted to its native type, if wasn't possible the same string will be returned
|
||||
*/
|
||||
protected static function cast($value)
|
||||
{
|
||||
if ($value === 'true') {
|
||||
@@ -265,6 +423,40 @@ class Service_Rest_RestTool
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* colorize output
|
||||
*/
|
||||
static public function out($text, $color = null, $newLine = true, $ret = false)
|
||||
{
|
||||
if (DIRECTORY_SEPARATOR == '\\') {
|
||||
$hasColorSupport = false !== getenv('ANSICON');
|
||||
} else {
|
||||
$hasColorSupport = true;
|
||||
}
|
||||
|
||||
$styles = array(
|
||||
'success' => "\033[0;32m%s\033[0m",
|
||||
'error' => "\033[31;31m%s\033[0m",
|
||||
'info' => "\033[33;33m%s\033[0m"
|
||||
);
|
||||
|
||||
$format = '%s';
|
||||
|
||||
if (isset($styles[$color]) && $hasColorSupport) {
|
||||
$format = $styles[$color];
|
||||
}
|
||||
|
||||
if ($newLine) {
|
||||
$format .= PHP_EOL;
|
||||
}
|
||||
|
||||
if ($ret) {
|
||||
return sprintf($format, $text);
|
||||
} else {
|
||||
printf($format, $text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,23 @@
|
||||
|
||||
class Services_Rest_Case
|
||||
{
|
||||
protected function get($id = '', $start=null, $limit=null, $type=null, $filter=null, $search=null, $process=null, $user=null, $status=null, $typeResource=null, $dateFrom=null, $dateTo=null)
|
||||
public function get()
|
||||
{
|
||||
echo 'hello world';
|
||||
}
|
||||
|
||||
public function options22()
|
||||
{
|
||||
echo 'opts';
|
||||
}
|
||||
|
||||
public function post()
|
||||
{
|
||||
header('Content-Type: application/json');
|
||||
echo '{"response": "hello post"}';
|
||||
}
|
||||
|
||||
protected function get11($id = '', $start=null, $limit=null, $type=null, $filter=null, $search=null, $process=null, $user=null, $status=null, $typeResource=null, $dateFrom=null, $dateTo=null)
|
||||
{
|
||||
if (empty($id)) {
|
||||
// getting all records.
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
<form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit="return validateForm('{$form_objectRequiredFields}');"> <div class="borderForm" style="width:{$form_width}; padding-left:0; padding-right:0; border-width:{$form_border};">
|
||||
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||
<div class="content" style="height:{$form_height};" >
|
||||
<table width="99%">
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<input type="hidden" class="notValidateThisFields" name="__notValidateThisFields__" id="__notValidateThisFields__" value="{$form_objectRequiredFields}" />
|
||||
<input type="hidden" name="DynaformRequiredFields" id="DynaformRequiredFields" value="{$form_objectRequiredFields}" />
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class='FormTitle' colspan="2" align="">{$form.TITLE}</td>
|
||||
</tr>
|
||||
<tr style="display: none">
|
||||
<td colspan="2">{$form.PRO_UID}</td>
|
||||
</tr>
|
||||
<tr style="display: none">
|
||||
<td colspan="2">{$form.OP_UID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$OP_CASE_STATUS}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.OP_CASE_STATUS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$TAS_UID}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.TAS_UID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$GROUP_USER}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.GROUP_USER_DROPDOWN}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$OP_TASK_SOURCE}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.OP_TASK_SOURCE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$OP_PARTICIPATE}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.OP_PARTICIPATE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$OP_OBJ_TYPE}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.OP_OBJ_TYPE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$ALL}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.ALL}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$DYNAFORMS}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.DYNAFORMS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$INPUTS}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.INPUTS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$OUTPUTS}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.OUTPUTS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$OP_ACTION}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.OP_ACTION}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormButton' colspan="2" align="center">{$form.CREATE}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
{$form.JS}
|
||||
</script>
|
||||
</form>
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dynaForm name="processes_EditObjectPermission" width="100%">
|
||||
<dynaForm name="processes_EditObjectPermission" width="100%" enableTemplate="1">
|
||||
<TITLE type="title">
|
||||
<en>Edit Specific Permission</en>
|
||||
<es><![CDATA[Nuevo permiso específico]]></es></TITLE>
|
||||
</TITLE>
|
||||
<LANG type="private"/>
|
||||
<PRO_UID type="hidden"/>
|
||||
<OP_UID type="hidden"/>
|
||||
@@ -13,109 +13,201 @@
|
||||
<option name="DRAFT">DRAFT</option>
|
||||
<option name="TO_DO">TO_DO</option>
|
||||
<option name="PAUSED">PAUSED</option>
|
||||
<option name="COMPLETED">COMPLETED</option></en>
|
||||
<es>Estado del Caso
|
||||
<option name="">Todas las tareas</option>
|
||||
</es>
|
||||
<option name="COMPLETED">COMPLETED</option>
|
||||
</en>
|
||||
</OP_CASE_STATUS>
|
||||
|
||||
<TAS_UID type="dropdown" mode="edit"><![CDATA[
|
||||
SELECT TAS_UID, CON_VALUE AS TAS_TITLE FROM TASK LEFT JOIN CONTENT ON (TAS_UID = CON_ID AND CON_CATEGORY = 'TAS_TITLE' AND CON_LANG = @@LANG) WHERE PRO_UID = @@PRO_UID AND TAS_TYPE = 'NORMAL' ORDER BY TAS_TITLE
|
||||
]]><en>Target Task<option name="">All Tasks</option></en>
|
||||
<TAS_UID type="dropdown" mode="edit">
|
||||
<![CDATA[SELECT TAS_UID, CON_VALUE AS TAS_TITLE FROM TASK LEFT JOIN CONTENT ON (TAS_UID = CON_ID AND CON_CATEGORY = 'TAS_TITLE' AND CON_LANG = @@LANG) WHERE PRO_UID = @@PRO_UID AND TAS_TYPE = 'NORMAL' ORDER BY TAS_TITLE]]>
|
||||
<en>Target Task
|
||||
<option name="">All Tasks</option>
|
||||
</en>
|
||||
</TAS_UID>
|
||||
|
||||
<GROUP_USER type="dropdown" mode="edit" sqlConnection="dbarray">
|
||||
SELECT * FROM usersGroups
|
||||
<GROUP_USER type="text" mode="view">
|
||||
<en>Group or User</en>
|
||||
</GROUP_USER>
|
||||
|
||||
<OP_TASK_SOURCE type="dropdown" mode="edit"><![CDATA[
|
||||
SELECT TAS_UID, CON_VALUE AS TAS_TITLE FROM TASK LEFT JOIN CONTENT ON (TAS_UID = CON_ID AND CON_CATEGORY = 'TAS_TITLE' AND CON_LANG = @@LANG) WHERE PRO_UID = @@PRO_UID AND TAS_TYPE = 'NORMAL' ORDER BY TAS_TITLE
|
||||
]]><en>Origin Task<option name="">All Tasks</option></en>
|
||||
<GROUP_USER_DROPDOWN type="title" mode="view" enableHtml="1" label="@#GROUP_USER" />
|
||||
|
||||
<OP_TASK_SOURCE type="dropdown" mode="edit">
|
||||
<![CDATA[SELECT TAS_UID, CON_VALUE AS TAS_TITLE FROM TASK LEFT JOIN CONTENT ON (TAS_UID = CON_ID AND CON_CATEGORY = 'TAS_TITLE' AND CON_LANG = @@LANG) WHERE PRO_UID = @@PRO_UID AND TAS_TYPE = 'NORMAL' ORDER BY TAS_TITLE]]><en>Origin Task<option name="">All Tasks</option></en>
|
||||
</OP_TASK_SOURCE>
|
||||
|
||||
<OP_PARTICIPATE type="yesno" defaultvalue="1" mode="edit">
|
||||
<en>Participation required?</en>
|
||||
</OP_PARTICIPATE>
|
||||
|
||||
<OP_OBJ_TYPE type="dropdown" mode="edit" dependentfields="OP_OBJ_UID">
|
||||
<en>Type
|
||||
<option name="ANY">All</option>
|
||||
<option name="DYNAFORM">Dynaform</option>
|
||||
<option name="INPUT">Input Document</option>
|
||||
<option name="OUTPUT">Output Document</option></en>
|
||||
<option name="ANY">All</option>
|
||||
<option name="DYNAFORM">Dynaform</option>
|
||||
<option name="INPUT">Input Document</option>
|
||||
<option name="OUTPUT">Output Document</option>
|
||||
</en>
|
||||
</OP_OBJ_TYPE>
|
||||
<ALL type="dropdown" mode="edit" sqlConnection="dbarray">
|
||||
SELECT * FROM allObjects
|
||||
<en>Object<option name="">All</option></en>
|
||||
SELECT * FROM allObjects
|
||||
<en>Object
|
||||
<option name="">All</option>
|
||||
</en>
|
||||
</ALL>
|
||||
<DYNAFORMS type="dropdown" mode="edit" sqlConnection="dbarray">
|
||||
SELECT * FROM allDynaforms
|
||||
SELECT * FROM allDynaforms
|
||||
<en>DynaForm<option name="">All</option></en>
|
||||
</DYNAFORMS>
|
||||
<INPUTS type="dropdown" mode="edit" sqlConnection="dbarray">
|
||||
SELECT * FROM allInputs
|
||||
SELECT * FROM allInputs
|
||||
<en>Input Document<option name="">All</option></en>
|
||||
</INPUTS>
|
||||
<OUTPUTS type="dropdown" mode="edit" sqlConnection="dbarray">
|
||||
SELECT * FROM allOutputs
|
||||
SELECT * FROM allOutputs
|
||||
<en>Output Document<option name="">All</option></en>
|
||||
</OUTPUTS>
|
||||
<OP_ACTION type="dropdown" mode="edit">
|
||||
<en>Permission<option name="VIEW">View</option><option name="BLOCK">Block</option></en>
|
||||
<en>Permission<option name="VIEW">View</option><option name="BLOCK">Block</option><option name="DELETE">Delete</option></en>
|
||||
</OP_ACTION>
|
||||
|
||||
<CREATE type="button" onclick="saveObjectPermission(this.form);">
|
||||
<en>Save</en>
|
||||
</CREATE>
|
||||
<ID_DELETE type="private"/>
|
||||
<JS type="javascript"><![CDATA[
|
||||
var aOptions = [];
|
||||
var getOptions = function() {
|
||||
var oAux = getField('OP_ACTION');
|
||||
for (var i = 0; i < oAux.options.length; i++) {
|
||||
if (oAux.options[i].value != 'DELETE') {
|
||||
aOptions.push({label:oAux.options[i].text, value: oAux.options[i].value});
|
||||
}
|
||||
}
|
||||
};
|
||||
var rebuildOptionsWhenLoad = function(sType) {
|
||||
var selectedValue = getField('OP_ACTION').value;
|
||||
switch (sType) {
|
||||
case 'INPUT':
|
||||
case 'OUTPUT':
|
||||
var oAux = getField('OP_ACTION');
|
||||
while (oAux.options.length) {
|
||||
oAux.remove(0);
|
||||
}
|
||||
for (var i = 0; i < aOptions.length; i++) {
|
||||
var oOption = document.createElement('OPTION');
|
||||
oOption.value = aOptions[i].value;
|
||||
oOption.text = aOptions[i].label;
|
||||
if (oOption.value == selectedValue) {
|
||||
oOption.selected = true;
|
||||
}
|
||||
oAux.options.add(oOption);
|
||||
}
|
||||
var oOption = document.createElement('OPTION');
|
||||
oOption.value = 'DELETE';
|
||||
oOption.text = '@#ID_DELETE';
|
||||
if (oOption.value == selectedValue) {
|
||||
oOption.selected = true;
|
||||
}
|
||||
oAux.options.add(oOption);
|
||||
break
|
||||
default:
|
||||
var oAux = getField('OP_ACTION');
|
||||
while (oAux.options.length) {
|
||||
oAux.remove(0);
|
||||
}
|
||||
for (var i = 0; i < aOptions.length; i++) {
|
||||
var oOption = document.createElement('OPTION');
|
||||
oOption.value = aOptions[i].value;
|
||||
oOption.text = aOptions[i].label;
|
||||
if (oOption.value == selectedValue) {
|
||||
oOption.selected = true;
|
||||
}
|
||||
oAux.options.add(oOption);
|
||||
}
|
||||
break;
|
||||
}
|
||||
oAux.value = selectedValue;
|
||||
};
|
||||
var rebuildOptions = function(sType) {
|
||||
switch (sType) {
|
||||
case 'INPUT':
|
||||
case 'OUTPUT':
|
||||
var oAux = getField('OP_ACTION');
|
||||
while (oAux.options.length) {
|
||||
oAux.remove(0);
|
||||
}
|
||||
for (var i = 0; i < aOptions.length; i++) {
|
||||
var oOption = document.createElement('OPTION');
|
||||
oOption.value = aOptions[i].value;
|
||||
oOption.text = aOptions[i].label;
|
||||
oAux.options.add(oOption);
|
||||
}
|
||||
var oOption = document.createElement('OPTION');
|
||||
oOption.value = 'DELETE';
|
||||
oOption.text = '@#ID_DELETE';
|
||||
oAux.options.add(oOption);
|
||||
break
|
||||
default:
|
||||
var oAux = getField('OP_ACTION');
|
||||
while (oAux.options.length) {
|
||||
oAux.remove(0);
|
||||
}
|
||||
for (var i = 0; i < aOptions.length; i++) {
|
||||
var oOption = document.createElement('OPTION');
|
||||
oOption.value = aOptions[i].value;
|
||||
oOption.text = aOptions[i].label;
|
||||
oAux.options.add(oOption);
|
||||
}
|
||||
break;
|
||||
}
|
||||
};
|
||||
if(getField('OP_OBJ_TYPE').value=='ANY')
|
||||
{ hideRowById('ALL' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'INPUTS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'INPUTS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
}
|
||||
if(getField('OP_OBJ_TYPE').value=='DYNAFORM')
|
||||
{ hideRowById( 'ALL' );
|
||||
hideRowById( 'INPUTS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
{ hideRowById( 'ALL' );
|
||||
hideRowById( 'INPUTS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
}
|
||||
if(getField('OP_OBJ_TYPE').value=='INPUT')
|
||||
{ hideRowById( 'ALL' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
}
|
||||
if(getField('OP_OBJ_TYPE').value=='OUTPUT')
|
||||
{ hideRowById( 'ALL' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'INPUTS' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'INPUTS' );
|
||||
}
|
||||
getOptions();
|
||||
rebuildOptionsWhenLoad(getField('OP_OBJ_TYPE').value);
|
||||
|
||||
leimnud.event.add(document.getElementById('form[OP_OBJ_TYPE]'), 'change', function() {
|
||||
if(getField('OP_OBJ_TYPE').value=='DYNAFORM')
|
||||
{ hideRowById( 'ALL' );
|
||||
hideRowById( 'INPUTS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
showRowById( 'DYNAFORMS' );
|
||||
{ hideRowById( 'ALL' );
|
||||
hideRowById( 'INPUTS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
showRowById( 'DYNAFORMS' );
|
||||
}
|
||||
if(getField('OP_OBJ_TYPE').value=='INPUT')
|
||||
{ hideRowById( 'ALL' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
showRowById( 'INPUTS' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
showRowById( 'INPUTS' );
|
||||
}
|
||||
if(getField('OP_OBJ_TYPE').value=='OUTPUT')
|
||||
{ hideRowById( 'ALL' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'INPUTS' );
|
||||
showRowById( 'OUTPUTS' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'INPUTS' );
|
||||
showRowById( 'OUTPUTS' );
|
||||
}
|
||||
if(getField('OP_OBJ_TYPE').value=='ANY')
|
||||
{ hideRowById('ALL' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'INPUTS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
hideRowById( 'DYNAFORMS' );
|
||||
hideRowById( 'INPUTS' );
|
||||
hideRowById( 'OUTPUTS' );
|
||||
}
|
||||
rebuildOptions(getField('OP_OBJ_TYPE').value);
|
||||
});
|
||||
|
||||
leimnud.event.add(document.getElementById('form[OP_CASE_STATUS]'), 'change', function() {
|
||||
@@ -123,15 +215,15 @@ leimnud.event.add(document.getElementById('form[OP_CASE_STATUS]'), 'change', fun
|
||||
var origin = document.getElementById('form[OP_TASK_SOURCE]');
|
||||
var participate = document.getElementById('form[OP_PARTICIPATE]');
|
||||
if (document.getElementById('form[OP_CASE_STATUS]').value=='COMPLETED')
|
||||
{
|
||||
hideRowById(target);
|
||||
hideRowById(origin);
|
||||
{
|
||||
hideRowById(target);
|
||||
hideRowById(origin);
|
||||
hideRowById(participate);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
showRowById(target);
|
||||
showRowById(origin);
|
||||
{
|
||||
showRowById(target);
|
||||
showRowById(origin);
|
||||
showRowById(participate);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'>
|
||||
<form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'>
|
||||
<div class="borderForm" style="padding-left: 0pt; padding-right: 0pt;">
|
||||
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||
<div class="content" style="">
|
||||
@@ -17,57 +17,57 @@
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$OP_CASE_STATUS}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.OP_CASE_STATUS} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OP_CASE_STATUS}</td>
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OP_CASE_STATUS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$TAS_UID}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.TAS_UID} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.TAS_UID}</td>
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.TAS_UID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$GROUP_USER}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.GROUP_USER} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.GROUP_USER}</td>
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.GROUP_USER_DROPDOWN}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$OP_TASK_SOURCE}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.OP_TASK_SOURCE} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OP_TASK_SOURCE}</td>
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OP_TASK_SOURCE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$OP_PARTICIPATE}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.OP_PARTICIPATE} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OP_PARTICIPATE}</td>
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OP_PARTICIPATE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$OP_OBJ_TYPE}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.OP_OBJ_TYPE} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OP_OBJ_TYPE}</td>
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OP_OBJ_TYPE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$ALL}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.ALL} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.ALL}</td>
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.ALL}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$DYNAFORMS}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.DYNAFORMS} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.DYNAFORMS}</td>
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.DYNAFORMS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$INPUTS}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.INPUTS} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INPUTS}</td>
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.INPUTS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$OUTPUTS}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.OUTPUTS} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OUTPUTS}</td>
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OUTPUTS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormLabel" width="{$form_labelWidth}">{$OP_ACTION}</td>
|
||||
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.OP_ACTION} </td> //-->
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OP_ACTION}</td>
|
||||
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.OP_ACTION}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="FormButton" colspan="2" align="center"><br/> {$form.CREATE} {$form.BTN_CANCEL}</td>
|
||||
@@ -82,4 +82,4 @@
|
||||
<script type="text/javascript">
|
||||
{$form.JS}
|
||||
</script>
|
||||
</form>
|
||||
</form>
|
||||
@@ -6,12 +6,14 @@
|
||||
<LANG type="private"/>
|
||||
<PRO_UID type="hidden"/>
|
||||
|
||||
|
||||
<OP_CASE_STATUS type="dropdown" mode="edit">
|
||||
<en>Status Case<option name="ALL">All</option>
|
||||
<option name="DRAFT">DRAFT</option>
|
||||
<option name="TO_DO">TO DO</option>
|
||||
<option name="PAUSED">PAUSED</option>
|
||||
<option name="COMPLETED">COMPLETED</option>
|
||||
<en>Status Case
|
||||
<option name="ALL">All</option>
|
||||
<option name="DRAFT">DRAFT</option>
|
||||
<option name="TO_DO">TO DO</option>
|
||||
<option name="PAUSED">PAUSED</option>
|
||||
<option name="COMPLETED">COMPLETED</option>
|
||||
</en>
|
||||
</OP_CASE_STATUS>
|
||||
|
||||
@@ -21,11 +23,13 @@
|
||||
<option name="">All Tasks</option>
|
||||
</en>
|
||||
</TAS_UID>
|
||||
<GROUP_USER type="dropdown" mode="edit" sqlConnection="dbarray">
|
||||
SELECT * FROM usersGroups
|
||||
|
||||
<GROUP_USER type="text" mode="view">
|
||||
<en>Group or User</en>
|
||||
</GROUP_USER>
|
||||
|
||||
<GROUP_USER_DROPDOWN type="title" mode="view" enableHtml="1" label="@#GROUP_USER" />
|
||||
|
||||
<OP_TASK_SOURCE type="dropdown" mode="edit">
|
||||
<![CDATA[SELECT TAS_UID, CON_VALUE AS TAS_TITLE FROM TASK LEFT JOIN CONTENT ON (TAS_UID = CON_ID AND CON_CATEGORY = 'TAS_TITLE' AND CON_LANG = @@LANG) WHERE PRO_UID = @@PRO_UID AND TAS_TYPE = 'NORMAL' ORDER BY TAS_TITLE]]><en>Origin Task<option name="">All Tasks</option></en>
|
||||
</OP_TASK_SOURCE>
|
||||
@@ -69,7 +73,7 @@
|
||||
|
||||
<CREATE type="button" onclick="saveObjectPermission(this.form);">
|
||||
<en>Create</en>
|
||||
<es>Create</es><pt>Criar</pt></CREATE>
|
||||
</CREATE>
|
||||
<ID_DELETE type="private"/>
|
||||
<JS type="javascript"><![CDATA[
|
||||
var aOptions = [];
|
||||
@@ -213,10 +217,10 @@ rebuildOptions(vValue);
|
||||
/*
|
||||
var dynaformOnload = function()
|
||||
{ var oAux = document.getElementById('form[TASKS]');
|
||||
if(document.getElementById('form[PROCESS]').value=='')
|
||||
if(document.getElementById('form[PROCESS]').value=='')
|
||||
hideRowById(oAux);
|
||||
else
|
||||
showRowById(oAux);
|
||||
showRowById(oAux);
|
||||
};
|
||||
*/
|
||||
leimnud.event.add(document.getElementById('form[OP_CASE_STATUS]'), 'change', function() {
|
||||
@@ -224,15 +228,15 @@ leimnud.event.add(document.getElementById('form[OP_CASE_STATUS]'), 'change', fun
|
||||
var origin = document.getElementById('form[OP_TASK_SOURCE]');
|
||||
var participate = document.getElementById('form[OP_PARTICIPATE]');
|
||||
if (document.getElementById('form[OP_CASE_STATUS]').value=='COMPLETED')
|
||||
{
|
||||
hideRowById(target);
|
||||
hideRowById(origin);
|
||||
{
|
||||
hideRowById(target);
|
||||
hideRowById(origin);
|
||||
hideRowById(participate);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
showRowById(target);
|
||||
showRowById(origin);
|
||||
{
|
||||
showRowById(target);
|
||||
showRowById(origin);
|
||||
showRowById(participate);
|
||||
}
|
||||
});
|
||||
@@ -242,4 +246,4 @@ function cancel(){
|
||||
}
|
||||
|
||||
]]></JS>
|
||||
</dynaForm>
|
||||
</dynaForm>
|
||||
@@ -423,6 +423,28 @@
|
||||
define('SERVER_NAME', $_SERVER ['SERVER_NAME']);
|
||||
define('SERVER_PORT', $_SERVER ['SERVER_PORT']);
|
||||
|
||||
// verify configuration for rest service
|
||||
if ($isRestRequest) {
|
||||
// disable until confirm that rest is enabled & configured on rest-config.ini file
|
||||
$isRestRequest = false;
|
||||
$confFile = '';
|
||||
|
||||
// try load and getting rest configuration
|
||||
if (file_exists(PATH_DATA_SITE . 'rest-config.ini')) {
|
||||
$confFile = PATH_DATA_SITE . 'rest-config.ini';
|
||||
} elseif (file_exists(PATH_CONFIG . 'rest-config.ini')) {
|
||||
$confFile = PATH_CONFIG . 'rest-config.ini';
|
||||
}
|
||||
|
||||
if (! empty($confFile) && $restConfig = @parse_ini_file($confFile, true)) {
|
||||
if (array_key_exists('enable_service', $restConfig)) {
|
||||
if ($restConfig['enable_service'] == 'true' || $restConfig['enable_service'] == '1') {
|
||||
$isRestRequest = true; // rest service enabled
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// load Plugins base class
|
||||
G::LoadClass('plugin');
|
||||
|
||||
@@ -575,10 +597,6 @@
|
||||
$isControllerCall = true;
|
||||
}
|
||||
}
|
||||
// var_dump(SYS_SYS);
|
||||
// var_dump(SYS_TARGET);
|
||||
// var_dump($isRestRequest);
|
||||
// die;
|
||||
|
||||
if (!$isControllerCall && ! file_exists($phpFile) && ! $isRestRequest) {
|
||||
$_SESSION['phpFileNotFound'] = $_SERVER['REQUEST_URI'];
|
||||
@@ -707,7 +725,7 @@
|
||||
$controller->setHttpRequestData($_REQUEST);
|
||||
$controller->call($controllerAction);
|
||||
} elseif ($isRestRequest) {
|
||||
G::dispatchRestService(SYS_TARGET);
|
||||
G::dispatchRestService(SYS_TARGET, $restConfig);
|
||||
} else {
|
||||
require_once $phpFile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user