01: package org.emforge.jbpm.messages;
02:
03: import java.util.HashMap;
04: import java.util.Map;
05:
06: import org.emforge.jbpm.web.bean.TaskController;
07: import org.emforge.xfer.StepTO;
08:
09: import ru.emdev.EmForge.email.velocity.BaseVelocityEmailImpl;
10: import ru.emdev.EmForge.util.Helper;
11:
12: public class TaskNotificationEmailImpl extends BaseVelocityEmailImpl
13: implements TaskNotificationEmail {
14: private StepTO m_step;
15:
16: public void setStep(StepTO i_step) {
17: m_step = i_step;
18: }
19:
20: @Override
21: public Map<String, Object> getModel() {
22: Map<String, Object> model = new HashMap<String, Object>();
23:
24: model.put("task", m_step);
25:
26: String taskLink = Helper.concatUrl(getApplicationPath(),
27: TaskController.TASK_PAGE_NAME);
28: taskLink = Helper.concatUrl(taskLink, m_step.getTaskId()
29: .toString());
30:
31: model.put("taskLink", taskLink);
32: return model;
33: }
34:
35: }
|