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