Пример #1
0
 protected function updatedLiveReportExport(BatchJob $dbBatchJob, kLiveReportExportJobData $data)
 {
     switch ($dbBatchJob->getStatus()) {
         case BatchJob::BATCHJOB_STATUS_FINISHED:
             return kFlowHelper::handleLiveReportExportFinished($dbBatchJob, $data);
         case BatchJob::BATCHJOB_STATUS_FAILED:
         case BatchJob::BATCHJOB_STATUS_FATAL:
             return kFlowHelper::handleLiveReportExportFailed($dbBatchJob, $data);
         case BatchJob::BATCHJOB_STATUS_ABORTED:
             return kFlowHelper::handleLiveReportExportAborted($dbBatchJob, $data);
         default:
             return $dbBatchJob;
     }
 }