[jboss-dev-forums] [jBPM Development] - how to build email of the service task, better give me a sample

Mauricio Salatino do-not-reply at jboss.com
Tue Sep 13 09:30:19 EDT 2011


Mauricio Salatino [http://community.jboss.org/people/salaboy21] commented on the document

" how to build email of the service task,better give me a sample "

To view all comments on this document, visit: http://community.jboss.org/docs/DOC-17188#comment-7595

--------------------------------------------------
Do you know how to send an Email with java code? you basically need to embed the same code inside an implementation of the WorkItemHandler internface. Once you get that you can bind the WorkItemHandler to the knowledge session (ksession.getWorkItemManager().register("Email", <your implemenatation of the work item handler interface>)) and add a task node to your process with the tns:name="Email". That's it  :) 
Cheers
--------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110913/0b92d6d8/attachment.html 


More information about the jboss-dev-forums mailing list