code: public void restart(String workflowId, boolean useLatestDefinitions) {
          Preconditions.checkArgument(StringUtils.isNotBlank(workflowId), "workflow id cannot be blank");
          Object[] params = new Object[]{"useLatestDefinitions", useLatestDefinitions};
          postForEntity("workflow/{workflowId}/restart", null, params, Void.TYPE, workflowId);
      }
docs: Restart a completed workflow
  
  @param workflowId           the workflow id of the workflow to be restarted
  @param useLatestDefinitions if true, use the latest workflow and task definitions when restarting the workflow
  if false, use the workflow and task definitions embedded in the workflow execution when restarting the workflow