/** * Update the experiment with the given ID * @param $expId * @param $updatedExperiment */ public static function update_experiment($expId, $updatedExperiment) { try { Airavata::updateExperiment($expId, $updatedExperiment); /* Utilities::print_success_message("<p>Experiment updated!</p>" . '<p>Click <a href="' . URL::to('/') . '/experiment/summary?expId=' . $expId . '">here</a> to visit the experiment summary page.</p>'); */ } catch (InvalidRequestException $ire) { Utilities::print_error_message('<p>There was a problem updating the experiment. Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>InvalidRequestException: ' . $ire->getMessage() . '</p>'); } catch (ExperimentNotFoundException $enf) { Utilities::print_error_message('<p>There was a problem updating the experiment. Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>ExperimentNotFoundException: ' . $enf->getMessage() . '</p>'); } catch (AiravataClientException $ace) { Utilities::print_error_message('<p>There was a problem updating the experiment. Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>AiravataClientException: ' . $ace->getMessage() . '</p>'); } catch (AiravataSystemException $ase) { Utilities::print_error_message('<p>There was a problem updating the experiment. Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>AiravataSystemException: ' . $ase->getMessage() . '</p>'); } }