T taskData = taskDataService.findEntityByProcessTaskId(taskId);
if (taskData == null) {
try {
taskData = getTaskDataClass().newInstance();
} catch (Exception e) {
throw new TaskHandlerException(e.getMessage(),e.getCause());
}
}
taskData.setTaskId(taskId);
Map<String,Object> data = new HashMap<String,Object>();
data.put("taskData", taskData);