예제 #1
0
 /**
  * @param Job $job
  * @param StorageApi\Token $token
  * @return StorageApi\OrchestrationTask[]
  * @throws UserException
  */
 protected final function loadTasks(Job $job, StorageApi\Token $token)
 {
     try {
         $taskManager = new StorageApi\OrchestrationTaskManager($this->storageApi);
         return $taskManager->findTasksByJob($job, $token);
     } catch (\Exception $e) {
         throw new UserException('Error on configuration read.', $e, array());
     }
 }