Exemplo n.º 1
0
 public function run()
 {
     $vFilename = $this->_oParentJob->getFilename();
     if (file_exists($vFilename)) {
         $this->getLogger()->log('Archiving file: ' . $vFilename, Zend_Log::INFO);
         $oTransport = Aligent_Batchjob_Model_Transport_Factory::getTransport($this->getLogger(), $this->_vConfigSet);
         $oTransport->archiveFile($vFilename);
     }
     return true;
 }
Exemplo n.º 2
0
 public function run()
 {
     $this->getLogger()->log("Looking for files of type: " . $this->_vFileType, Zend_Log::INFO);
     $oTransport = Aligent_Batchjob_Model_Transport_Factory::getTransport($this->getLogger(), $this->_vConfigSet);
     if (!$oTransport->importFileExists($this->_vFileType)) {
         // Stop the job, there's nothing to do.
         $this->getLogger()->log("No more files.  Stopping job.", Zend_Log::INFO);
         return false;
     }
     $vLocalFileName = $oTransport->fetchImportFile($this->_vFileType);
     $this->getParentJob()->setFilename($vLocalFileName);
     return true;
 }