}
@Override
protected void doTask(Map<Object, Object> context) throws Exception {
Long folderId = (Long) context.get("folderId");
Folder folder = folderService.getFolder(folderId);
String template = (String) context.get("template");
Activity activity = new Activity();
activity.setLinkedId(folderId);
activity.setEntity(Folder.NAME);
activity.setType(Folder.NAME);
activity.setDescription(template);
activity.setFormat(Activity.FORMAT_FTL);
activity.setProjectId(folder.getProjectId());
activity.setEnteredId(folder.getModifiedId());
activityService.createActivity(activity);
}