return RemoveContactsTaskData.class;
}
@Override
public Map<String,Object> loadTaskData(String taskId, Customer linkedCustomer, Boolean forHistory) {
RemoveContactsTaskData taskData = removeContactsTaskDataService.findEntityByProcessTaskId(taskId);
if (taskData == null) {
taskData = new RemoveContactsTaskData();
}
//if not for history, set actual contacts
if (Boolean.FALSE.equals(forHistory)) {
taskData.setRelatedContacts(linkedCustomer.getContactPersons());
}
taskData.setTaskId(taskId);
Map<String,Object> data = new HashMap<String,Object>();
data.put("taskData", taskData);
return data;
}