}
@Override
protected void doTask(Map<Object, Object> context) throws Exception {
Long postId = (Long) context.get("postId");
Post post = postService.getPost(postId);
String templateName = (String) context.get("template");
Activity activity = new Activity();
activity.setLinkedId(postId);
activity.setEntity(Post.NAME);
activity.setType(Post.NAME);
activity.setDescription(templateName);
activity.setFormat(Activity.FORMAT_FTL);
activity.setProjectId(post.getProjectId());
activity.setEnteredId(post.getModifiedId());
activityService.createActivity(activity);
}