[jboss-user] [JBoss jBPM] - Re: Setting ProcessVariable as a
kamleshkr
do-not-reply at jboss.com
Fri Dec 7 00:43:08 EST 2007
Hi,
In spite of setting the 'to' attribute in the processdefinition.xml, I have found other way out.
I have tried custome mail class, but jbpm does not delegates the call to my custom mail class, rather it calls its own Mail.class only.
I have taken a normal node, and written my ActionHandler for the node. In the ActionHandler class i have written the following code...
-----------------------------------------------------------------------------------
String to = "abc at xyz.com";
String text="Success sending mail from jbpm";
String subject="Test mail from JBPM";
org.jbpm.mail.Mail mail=new org.jbpm.mail.Mail(null,null,to,subject,text);
mail.send();
-----------------------------------------------------------------------------------
And EUREKA, its working....
Now i can set the contextVariable as the 'to' attribute without using any EL.
Please tell me how advisable is this way to send mail?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111095#4111095
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111095
More information about the jboss-user
mailing list