code: public String updateWorkflow(Workflow workflow) {
          executionDAO.updateWorkflow(workflow);
          indexDAO.indexWorkflow(workflow);
          return workflow.getWorkflowId();
      }
docs: Updates the given workflow in the data store
  
  @param workflow the workflow tp be updated
  @return the id of the updated workflow