01: package org.jbpm.graph.action;
02:
03: import org.dom4j.Element;
04: import org.jbpm.graph.def.Action;
05: import org.jbpm.jpdl.xml.JpdlXmlReader;
06:
07: public class MailAction extends Action {
08:
09: private static final long serialVersionUID = 1L;
10:
11: public void read(Element element, JpdlXmlReader jpdlReader) {
12: String template = element.attributeValue("template");
13: String actors = element.attributeValue("actors");
14: String to = element.attributeValue("to");
15: String subject = jpdlReader.getProperty("subject", element);
16: String text = jpdlReader.getProperty("text", element);
17: actionDelegation = jpdlReader.createMailDelegation(template,
18: actors, to, subject, text);
19: }
20: }
|