public long scanTask (TaskEntry te) { // fill in 'slurp'able data fields
String thePath = te.taskName.path();
NumberData pt = (NumberData)data.getSimpleValue (thePath + PLANNED_TIME);
te.plannedTime = ((pt == null) ? 0 : pt.getInteger());
DateData ad = (DateData)data.getSimpleValue (thePath + COMPLETED_TIME);
te.actualDate = ((ad == null) ? null : ad.getValue());
return te.plannedTime;
}