Пример #1
0
 protected function updatedStorageExport(BatchJob $dbBatchJob, kStorageExportJobData $data, BatchJob $twinJob = null)
 {
     switch ($dbBatchJob->getStatus()) {
         case BatchJob::BATCHJOB_STATUS_FINISHED:
             return kFlowHelper::handleStorageExportFinished($dbBatchJob, $data);
         case BatchJob::BATCHJOB_STATUS_FAILED:
         case BatchJob::BATCHJOB_STATUS_FATAL:
             return kFlowHelper::handleStorageExportFailed($dbBatchJob, $data);
         default:
             return $dbBatchJob;
     }
 }