code: private String getScheduling(TaskType value)
     {
        String result = "fixed-work";
        if (value != null && value == TaskType.FIXED_DURATION)
        {
           result = "fixed-duration";
        }
        return (result);
     }
docs: Convert a string representation of the task type
  into a TaskType instance.
  
  @param value string value
  @return TaskType value