Exemplo n.º 1
0
 protected function updatedConvertProfile(BatchJob $dbBatchJob, kConvertProfileJobData $data)
 {
     switch ($dbBatchJob->getStatus()) {
         case BatchJob::BATCHJOB_STATUS_PENDING:
             return kFlowHelper::handleConvertProfilePending($dbBatchJob, $data);
         case BatchJob::BATCHJOB_STATUS_FINISHED:
             return kFlowHelper::handleConvertProfileFinished($dbBatchJob, $data);
         case BatchJob::BATCHJOB_STATUS_FAILED:
         case BatchJob::BATCHJOB_STATUS_FATAL:
             return kFlowHelper::handleConvertProfileFailed($dbBatchJob, $data);
         default:
             return $dbBatchJob;
     }
 }