Пример #1
0
 protected function updatedConvertCollection(BatchJob $dbBatchJob, kConvertCollectionJobData $data)
 {
     switch ($dbBatchJob->getStatus()) {
         case BatchJob::BATCHJOB_STATUS_PENDING:
             return kFlowHelper::handleConvertCollectionPending($dbBatchJob, $data);
         case BatchJob::BATCHJOB_STATUS_FINISHED:
             return kFlowHelper::handleConvertCollectionFinished($dbBatchJob, $data);
         case BatchJob::BATCHJOB_STATUS_FAILED:
         case BatchJob::BATCHJOB_STATUS_FATAL:
             return kFlowHelper::handleConvertCollectionFailed($dbBatchJob, $data);
         default:
             return $dbBatchJob;
     }
 }