BPMN designer ver 1.1
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
<?php
|
||||
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
//$oHeadPublisher->setExtSkin( 'xtheme-gray');
|
||||
$oHeadPublisher->addExtJsScript('bpmn/MyWorkflow',true ); //adding a javascript file .js
|
||||
$oHeadPublisher->addExtJsScript('bpmn/pmosExt', true ); //adding a javascript file .js
|
||||
$oHeadPublisher->addExtJsScript('bpmn/TaskContext', true ); //adding a javascript file .js
|
||||
|
||||
$oHeadPublisher->addExtJsScript('bpmn/designer', true ); //adding a javascript file .js
|
||||
$oHeadPublisher->addExtJsScript('bpmn/Annotation',true );
|
||||
$oHeadPublisher->addExtJsScript('bpmn/bpmnShapes', true); //
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/LoopingSubProcess'); //
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/LoopingTask'); //
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/Dataobject'); //
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/Pool',true);
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/Lane');
|
||||
|
||||
$oHeadPublisher->addExtJsScript('bpmn/EventEmptyStart');
|
||||
$oHeadPublisher->addExtJsScript('bpmn/EventMessageStart');
|
||||
$oHeadPublisher->addExtJsScript('bpmn/EventTimerStart');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventRuleStart');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventSignalStart');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventMulStart');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventLinkStart');
|
||||
$oHeadPublisher->addExtJsScript('bpmn/EventEmptyInter');
|
||||
$oHeadPublisher->addExtJsScript('bpmn/EventMessageRecInter');
|
||||
$oHeadPublisher->addExtJsScript('bpmn/EventMessageSendInter');
|
||||
$oHeadPublisher->addExtJsScript('bpmn/EventTimerInter');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventBoundaryTimerInter');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventErrorInter');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventCompInter');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventRuleInter');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventCancelInter');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventInterSignal');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventMultipleInter');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventLinkInter');
|
||||
$oHeadPublisher->addExtJsScript('bpmn/EventEmptyEnd');
|
||||
$oHeadPublisher->addExtJsScript('bpmn/EventMessageEnd');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventErrorEnd');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventCompEnd');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventTerminateEnd');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventEndSignal');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventMultipleEnd');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventCancelEnd');
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/EventLinkEnd');
|
||||
|
||||
$oHeadPublisher->addExtJsScript('bpmn/GatewayInclusive' );
|
||||
$oHeadPublisher->addExtJsScript('bpmn/GatewayExclusiveData' );
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/GatewayExclusiveEvent' );
|
||||
$oHeadPublisher->addExtJsScript('bpmn/GatewayParallel' );
|
||||
//$oHeadPublisher->addExtJsScript('bpmn/GatewayComplex' );
|
||||
|
||||
$oHeadPublisher->addExtJsScript('bpmn/GridPanel');
|
||||
$oHeadPublisher->addExtJsScript('bpmn/SubProcess' );
|
||||
|
||||
$oHeadPublisher->addExtJsScript('bpmn/ProcessOptions',true);
|
||||
$oHeadPublisher->addExtJsScript('bpmn/ProcessMapContext', true );
|
||||
|
||||
$oHeadPublisher->addContent( 'bpmn/designer'); //adding a html file .html.
|
||||
$oHeadPublisher->assign('pro_uid', (isset($_GET['PRO_UID']) ? $_GET['PRO_UID']: ''));
|
||||
G::RenderPage('publish', 'extJs');
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
<?php
|
||||
|
||||
if( ! isset($_GET['PRO_UID']) )
|
||||
throw new Exception('The Process ID was not set!');
|
||||
|
||||
require_once 'classes/model/Process.php';
|
||||
$process = ProcessPeer::retrieveByPK( $_GET['PRO_UID'] );
|
||||
|
||||
if( get_class($process) != 'Process' ) {
|
||||
throw new Exception("The Process with UID: {$_GET['PRO_UID']} doesn't exist!");
|
||||
}
|
||||
|
||||
$processUID = $_GET['PRO_UID'];
|
||||
$_SESSION['PROCESS'] = $processUID;
|
||||
$_SESSION['PROCESSMAP'] = 'BPMN';
|
||||
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
//$oHeadPublisher->usingExtJs('ux/miframe');
|
||||
$oHeadPublisher->addExtJsScript('bpmn/ProcessOptions', true);
|
||||
$oHeadPublisher->addExtJsScript('bpmn/processmap', true);
|
||||
$oHeadPublisher->addContent( 'bpmn/processmap');
|
||||
$oHeadPublisher->assign('pro_title', $process->getProTitle());
|
||||
$oHeadPublisher->assign('pro_uid', $process->getProUid());
|
||||
G::RenderPage('publish', 'extJs');
|
||||
|
||||
@@ -38,15 +38,15 @@ try {
|
||||
break;
|
||||
}*/
|
||||
$oJSON = new Services_JSON();
|
||||
if ( isset ($_POST['data']) ) {
|
||||
$oData = $oJSON->decode(stripslashes($_POST['data']));
|
||||
if ( isset ($_REQUEST['data']) ) {
|
||||
$oData = $oJSON->decode(stripslashes($_REQUEST['data']));
|
||||
$sOutput = '';
|
||||
}
|
||||
|
||||
G::LoadClass('processMap');
|
||||
$oProcessMap = new processMap(new DBConnection);
|
||||
|
||||
switch($_POST['action'])
|
||||
switch($_REQUEST['action'])
|
||||
{
|
||||
case 'load':
|
||||
if ($oData->ct) {
|
||||
@@ -81,10 +81,10 @@ try {
|
||||
include(PATH_METHODS . 'processes/processes_webEntryValidate.php');
|
||||
break;
|
||||
case 'webEntry_delete':
|
||||
$form=$_POST;
|
||||
$form=$_REQUEST;
|
||||
unlink(PATH_DATA ."sites" . PATH_SEP . SYS_SYS . PATH_SEP . "public" . PATH_SEP. $form['PRO_UID']. PATH_SEP.$form['FILENAME']);
|
||||
unlink(PATH_DATA ."sites" . PATH_SEP . SYS_SYS . PATH_SEP . "public" . PATH_SEP. $form['PRO_UID']. PATH_SEP .str_replace(".php","Post",$form['FILENAME']).".php");
|
||||
$oProcessMap->webEntry($_POST['PRO_UID']);
|
||||
$oProcessMap->webEntry($_REQUEST['PRO_UID']);
|
||||
break;
|
||||
|
||||
case 'webEntry_new':
|
||||
@@ -194,13 +194,13 @@ try {
|
||||
$oProcessMap->triggersList($oData->pro_uid);
|
||||
break;
|
||||
case 'case_scheduler':
|
||||
if(isset($_POST['PRO_UID'])){
|
||||
$oProcessMap->caseSchedulerList($_POST['PRO_UID']);
|
||||
if(isset($_REQUEST['PRO_UID'])){
|
||||
$oProcessMap->caseSchedulerList($_REQUEST['PRO_UID']);
|
||||
}
|
||||
break;
|
||||
case 'log_case_scheduler':
|
||||
if(isset($_POST['PRO_UID'])){
|
||||
$oProcessMap->logCaseSchedulerList($_POST['PRO_UID']);
|
||||
if(isset($_REQUEST['PRO_UID'])){
|
||||
$oProcessMap->logCaseSchedulerList($_REQUEST['PRO_UID']);
|
||||
}
|
||||
break;
|
||||
case 'messages':
|
||||
@@ -305,7 +305,7 @@ try {
|
||||
$oProcessMap->processFilesManager($oData->pro_uid);
|
||||
break;
|
||||
case 'exploreDirectory':
|
||||
$objData = json_decode($_POST['data']);
|
||||
$objData = json_decode($_REQUEST['data']);
|
||||
$_SESSION['PFMDirectory'] = $objData->{'main_directory'};
|
||||
$oProcessMap->exploreDirectory($oData->pro_uid, $oData->main_directory, $oData->directory);
|
||||
break;
|
||||
@@ -421,30 +421,30 @@ try {
|
||||
break;
|
||||
|
||||
case 'editFile':
|
||||
//echo $_POST['filename'];
|
||||
//echo $_REQUEST['filename'];
|
||||
global $G_PUBLISH;
|
||||
$G_PUBLISH = new Publisher();
|
||||
///-- $sDirectory = PATH_DATA_MAILTEMPLATES . $_POST['pro_uid'] . PATH_SEP . $_POST['filename'];
|
||||
///-- $sDirectory = PATH_DATA_MAILTEMPLATES . $_REQUEST['pro_uid'] . PATH_SEP . $_REQUEST['filename'];
|
||||
$sDir = "";
|
||||
if(isset($_SESSION['PFMDirectory']))
|
||||
$sDir = $_SESSION['PFMDirectory'];
|
||||
|
||||
switch($sDir){
|
||||
case 'mailTemplates' : $sDirectory = PATH_DATA_MAILTEMPLATES . $_POST['pro_uid'] . PATH_SEP . $_POST['filename'];
|
||||
case 'mailTemplates' : $sDirectory = PATH_DATA_MAILTEMPLATES . $_REQUEST['pro_uid'] . PATH_SEP . $_REQUEST['filename'];
|
||||
break;
|
||||
case 'public' : $sDirectory = PATH_DATA_PUBLIC . $_POST['pro_uid'] . PATH_SEP . $_POST['filename'];
|
||||
case 'public' : $sDirectory = PATH_DATA_PUBLIC . $_REQUEST['pro_uid'] . PATH_SEP . $_REQUEST['filename'];
|
||||
break;
|
||||
default : $sDirectory = PATH_DATA_MAILTEMPLATES . $_POST['pro_uid'] . PATH_SEP . $_POST['filename'];
|
||||
default : $sDirectory = PATH_DATA_MAILTEMPLATES . $_REQUEST['pro_uid'] . PATH_SEP . $_REQUEST['filename'];
|
||||
break;
|
||||
}
|
||||
$fcontent = file_get_contents($sDirectory);
|
||||
$extion=explode(".",$_POST['filename']);
|
||||
$extion=explode(".",$_REQUEST['filename']);
|
||||
|
||||
//if($extion[count($extion)-1]=='html' || $extion[count($extion)-1]=='txt'){
|
||||
$aData = Array(
|
||||
'pro_uid'=>$_POST['pro_uid'],
|
||||
'pro_uid'=>$_REQUEST['pro_uid'],
|
||||
'fcontent'=>$fcontent,
|
||||
'filename'=>$_POST['filename'],
|
||||
'filename'=>$_REQUEST['filename'],
|
||||
);
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_FileEdit', '', $aData);
|
||||
G::RenderPage('publish', 'raw');
|
||||
@@ -458,18 +458,18 @@ try {
|
||||
global $G_PUBLISH;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$sDir = "";
|
||||
if(isset($_POST['MAIN_DIRECTORY']))
|
||||
$sDir = $_POST['MAIN_DIRECTORY'];
|
||||
if(isset($_REQUEST['MAIN_DIRECTORY']))
|
||||
$sDir = $_REQUEST['MAIN_DIRECTORY'];
|
||||
switch($sDir){
|
||||
case 'mailTemplates' : $sDirectory = PATH_DATA_MAILTEMPLATES . $_POST['pro_uid'] . PATH_SEP . $_POST['filename'];
|
||||
case 'mailTemplates' : $sDirectory = PATH_DATA_MAILTEMPLATES . $_REQUEST['pro_uid'] . PATH_SEP . $_REQUEST['filename'];
|
||||
break;
|
||||
case 'public' : $sDirectory = PATH_DATA_PUBLIC . $_POST['pro_uid'] . PATH_SEP . $_POST['filename'];
|
||||
case 'public' : $sDirectory = PATH_DATA_PUBLIC . $_REQUEST['pro_uid'] . PATH_SEP . $_REQUEST['filename'];
|
||||
break;
|
||||
default : $sDirectory = PATH_DATA_MAILTEMPLATES . $_POST['pro_uid'] . PATH_SEP . $_POST['filename'];
|
||||
default : $sDirectory = PATH_DATA_MAILTEMPLATES . $_REQUEST['pro_uid'] . PATH_SEP . $_REQUEST['filename'];
|
||||
break;
|
||||
}
|
||||
$fp = fopen($sDirectory, 'w');
|
||||
$content = stripslashes($_POST['fcontent']);
|
||||
$content = stripslashes($_REQUEST['fcontent']);
|
||||
$content = str_replace("@amp@", "&", $content);
|
||||
fwrite($fp, $content);
|
||||
fclose($fp);
|
||||
@@ -482,10 +482,10 @@ try {
|
||||
case 'saveFile':
|
||||
global $G_PUBLISH;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$sDirectory = PATH_DATA_MAILTEMPLATES . $_POST['pro_uid'] . PATH_SEP . $_POST['filename'];
|
||||
$sDirectory = PATH_DATA_MAILTEMPLATES . $_REQUEST['pro_uid'] . PATH_SEP . $_REQUEST['filename'];
|
||||
|
||||
$fp = fopen($sDirectory, 'w');
|
||||
$content = stripslashes($_POST['fcontent']);
|
||||
$content = stripslashes($_REQUEST['fcontent']);
|
||||
$content = str_replace("@amp@", "&", $content);
|
||||
fwrite($fp, $content);
|
||||
fclose($fp);
|
||||
|
||||
Reference in New Issue
Block a user