示例#1
0
 protected function updatedBulkUpload(BatchJob $dbBatchJob, kBulkUploadJobData $data)
 {
     switch ($dbBatchJob->getStatus()) {
         case BatchJob::BATCHJOB_STATUS_FAILED:
         case BatchJob::BATCHJOB_STATUS_FATAL:
             return kFlowHelper::handleBulkUploadFailed($dbBatchJob, $data);
         case BatchJob::BATCHJOB_STATUS_FINISHED:
             return kFlowHelper::handleBulkUploadFinished($dbBatchJob, $data);
         default:
             return $dbBatchJob;
     }
 }