Exemplo n.º 1
0
  @Transactional()
  public void setInfo(Long runId, String isPaused, String showNodeId) throws Exception {
    Run run = this.retrieveById(runId);

    String runInfoString = "<isPaused>" + isPaused + "</isPaused>";
    if (showNodeId != null) {
      runInfoString += "<showNodeId>" + showNodeId + "</showNodeId>";
    }

    /*
     * when we use the info field for more info than just isPaused this
     * will need to be changed so it doesn't just completely overwrite
     * the info field
     */
    run.setInfo(runInfoString);
    this.runDao.save(run);
  }