FR [2857673] - Implement workflow e-mail for non-documents

https://sourceforge.net/tracker/?func=detail&aid=2857673&group_id=176962&atid=879335
This commit is contained in:
Carlos Ruiz 2009-09-12 19:11:00 +00:00
parent 58e9c3af40
commit 8ab4c236b2
1 changed files with 13 additions and 0 deletions

View File

@ -1009,6 +1009,19 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable
m_emails = new ArrayList<String>(); m_emails = new ArrayList<String>();
sendEMail(); sendEMail();
setTextMsg(m_emails.toString()); setTextMsg(m_emails.toString());
} else
{
MClient client = MClient.get(getCtx(), getAD_Client_ID());
MMailText mailtext = new MMailText(getCtx(),getNode().getR_MailText_ID(),null);
String subject = getNode().getDescription()
+ ": " + mailtext.getMailHeader();
String message = mailtext.getMailText(true)
+ "\n-----\n" + getNodeHelp();
String to = getNode().getEMail();
client.sendEMail(to, subject, message, null);
} }
return true; // done return true; // done
} // EMail } // EMail