use of com.centurylink.mdw.model.data.task.TaskCategory in project mdw-designer by CenturyLinkCloud.
the class WorkflowAccessRest method getTaskCategories.
public List<TaskCategory> getTaskCategories() throws DataAccessException {
try {
String taskCategoriesJson = getServer().invokeResourceService("BaseData/TaskCategories?format=json");
JSONArray jsonArray = new JSONArray(taskCategoriesJson);
List<TaskCategory> taskCategories = new ArrayList<TaskCategory>();
for (int i = 0; i < jsonArray.length(); i++) taskCategories.add(new TaskCategory(jsonArray.getJSONObject(i)));
return taskCategories;
} catch (Exception ex) {
throw new DataAccessException("Error retrieving task categories", ex);
}
}
Aggregations