return EditCustomerTaskData.class;
}
@Override
public Map<String,Object> loadTaskData(String taskId, Customer linkedCustomer, Boolean forHistory) {
EditCustomerTaskData taskData = editCustomerTaskDataService.findEntityByProcessTaskId(taskId);;
if (taskData == null) {
taskData = new EditCustomerTaskData();
//set old values
Customer customer = linkedCustomer != null ? linkedCustomer : new Customer();
rememberEditTaskOldData(taskData, customer);
}
taskData.setTaskId(taskId);
Map<String,Object> data = new HashMap<String,Object>();
data.put("taskData", taskData);
return data;
}