. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ G::LoadThirdParty('pear/json','class.json'); try { $oJSON = new Services_JSON(); $stdObj = $oJSON->decode( $_POST['data'] ); if ( isset ($stdObj->pro_uid ) ) $sProUid = $stdObj->pro_uid; else throw ( new Exception ( 'the process uid is not defined!.' ) ); /* 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; $G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_Export', '', $Fields ); G::RenderPage( 'publish', 'raw' ); } catch ( Exception $e ){ $G_PUBLISH = new Publisher; $aMessage['MESSAGE'] = $e->getMessage(); $G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage ); G::RenderPage('publish', 'raw' ); }