code: public static String newTaskId(String jobId, int sequence) {
      return Id.Task.create(Id.parse(jobId).get(Id.Parts.INSTANCE_NAME), sequence).toString();
    }
docs: Create a new task ID for the job with the given job ID.
  
  @param jobId job ID
  @param sequence task sequence number
  @return new task ID