Import XPDL Option Added
This commit is contained in:
@@ -36,9 +36,14 @@ try {
|
|||||||
|
|
||||||
/* Includes */
|
/* Includes */
|
||||||
G::LoadClass('processes');
|
G::LoadClass('processes');
|
||||||
|
G::LoadClass('xpdl');
|
||||||
$oProcess = new Processes();
|
$oProcess = new Processes();
|
||||||
|
$oXpdl = new Xpdl();
|
||||||
$proFields = $oProcess->serializeProcess( $sProUid );
|
$proFields = $oProcess->serializeProcess( $sProUid );
|
||||||
$Fields = $oProcess->saveSerializedProcess ( $proFields );
|
$Fields = $oProcess->saveSerializedProcess ( $proFields );
|
||||||
|
$xpdlFields = $oXpdl->xmdlProcess($sProUid);
|
||||||
|
$Fields['FILENAMEXPDL'] = $xpdlFields['FILENAMEXPDL'];
|
||||||
|
$Fields['FILENAME_LINKXPDL'] = $xpdlFields['FILENAME_LINKXPDL'];
|
||||||
|
|
||||||
/* Render page */
|
/* Render page */
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher;
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
$G_ID_MENU_SELECTED = 'PROCESSES';
|
$G_ID_MENU_SELECTED = 'PROCESSES';
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher;
|
||||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ValidatingGroups', '', $Fields, 'processes_ImportExisting' );
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ValidatingGroups', '', $Fields, 'processes_ImportExisting' );
|
||||||
G::RenderPage('publish');
|
G::RenderPage('publish', "blank");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
//end added code
|
//end added code
|
||||||
@@ -127,5 +127,5 @@ catch ( Exception $e ){
|
|||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher;
|
||||||
$aMessage['MESSAGE'] = $e->getMessage();
|
$aMessage['MESSAGE'] = $e->getMessage();
|
||||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||||
G::RenderPage('publish');
|
G::RenderPage('publish', "blank");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
$G_ID_MENU_SELECTED = 'PROCESSES';
|
$G_ID_MENU_SELECTED = 'PROCESSES';
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher;
|
||||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ImportExistingXpdl', '', $Fields, 'processes_ImportExistingXpdl' );
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ImportExistingXpdl', '', $Fields, 'processes_ImportExistingXpdl' );
|
||||||
G::RenderPage('publish');
|
G::RenderPage('publish', "blank");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
// code added by gustavo cruz gustavo-at-colosa-dot-com
|
// code added by gustavo cruz gustavo-at-colosa-dot-com
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
$G_ID_MENU_SELECTED = 'PROCESSES';
|
$G_ID_MENU_SELECTED = 'PROCESSES';
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher;
|
||||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ValidatingGroups', '', $Fields, 'processes_ImportFile' );
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ValidatingGroups', '', $Fields, 'processes_ImportFile' );
|
||||||
G::RenderPage('publish');
|
G::RenderPage('publish', "blank");
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
// end added code
|
// end added code
|
||||||
@@ -101,5 +101,5 @@ catch ( Exception $e ){
|
|||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher;
|
||||||
$aMessage['MESSAGE'] = $e->getMessage();
|
$aMessage['MESSAGE'] = $e->getMessage();
|
||||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||||
G::RenderPage('publish');
|
G::RenderPage('publish', "blank");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,12 +54,12 @@ G::LoadClass('processes');
|
|||||||
$G_ID_MENU_SELECTED = 'PROCESSES';
|
$G_ID_MENU_SELECTED = 'PROCESSES';
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher;
|
||||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ImportXpdl', '', NULL, 'processes_ImportFileXpdl' );
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ImportXpdl', '', NULL, 'processes_ImportFileXpdl' );
|
||||||
G::RenderPage( "publish" );
|
G::RenderPage('publish', "blank");
|
||||||
|
|
||||||
}
|
}
|
||||||
catch ( Exception $e ){
|
catch ( Exception $e ){
|
||||||
$G_PUBLISH = new Publisher;
|
$G_PUBLISH = new Publisher;
|
||||||
$aMessage['MESSAGE'] = $e->getMessage();
|
$aMessage['MESSAGE'] = $e->getMessage();
|
||||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||||
G::RenderPage('publish');
|
G::RenderPage('publish', "blank");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -200,6 +200,11 @@ Ext.onReady(function(){
|
|||||||
iconCls: 'silk-add',
|
iconCls: 'silk-add',
|
||||||
icon: '/images/import.gif',
|
icon: '/images/import.gif',
|
||||||
handler:importProcess
|
handler:importProcess
|
||||||
|
},{
|
||||||
|
text:'Import XPDL',
|
||||||
|
iconCls: 'silk-add',
|
||||||
|
icon: '/images/import.gif',
|
||||||
|
handler:importXPDLProcess
|
||||||
},/*{
|
},/*{
|
||||||
text:'Export',
|
text:'Export',
|
||||||
iconCls: 'silk-add',
|
iconCls: 'silk-add',
|
||||||
@@ -446,6 +451,10 @@ importProcess = function(){
|
|||||||
window.location = 'processes_Import';
|
window.location = 'processes_Import';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
importXPDLProcess = function(){
|
||||||
|
window.location = 'processes_ImportXpdl';
|
||||||
|
}
|
||||||
|
|
||||||
browseLibrary = function(){
|
browseLibrary = function(){
|
||||||
window.location = 'processes_Library';
|
window.location = 'processes_Library';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user