info.setProcessName(processDAO.getType());
info.setDtStarted(toCalendar(instance.getCreateTime()));
info.setDtLastActive(toCalendar(instance.getLastActiveTime()));
info.setStatus(__psc.cvtInstanceStatus(instance.getState()));
if (instance.getFault() != null) {
TFaultInfo faultInfo = info.addNewFaultInfo();
faultInfo.setName(instance.getFault().getName());
faultInfo.setExplanation(instance.getFault().getExplanation());
faultInfo.setAiid(instance.getFault().getActivityId());
faultInfo.setLineNumber(instance.getFault().getLineNo());
}
if (instance.getActivityFailureCount() > 0) {
TFailuresInfo failures = info.addNewFailures();
failures.setDtFailure(toCalendar(instance.getActivityFailureDateTime()));
failures.setCount(instance.getActivityFailureCount());