Example #1
0
 protected function updatedImport(BatchJob $dbBatchJob, kImportJobData $data)
 {
     switch ($dbBatchJob->getStatus()) {
         case BatchJob::BATCHJOB_STATUS_FINISHED:
             return kFlowHelper::handleImportFinished($dbBatchJob, $data);
         case BatchJob::BATCHJOB_STATUS_RETRY:
             return kFlowHelper::handleImportRetried($dbBatchJob, $data);
         case BatchJob::BATCHJOB_STATUS_FAILED:
         case BatchJob::BATCHJOB_STATUS_FATAL:
             return kFlowHelper::handleImportFailed($dbBatchJob, $data);
         default:
             return $dbBatchJob;
     }
 }