[jboss-user] [jBPM] - To do a simple mail flow problem

leaf-xue do-not-reply at jboss.com
Fri Sep 7 02:42:23 EDT 2012


leaf-xue [https://community.jboss.org/people/leaf-xue] created the discussion

"To do a simple mail flow problem"

To view the discussion, visit: https://community.jboss.org/message/758479#758479

--------------------------------------------------------------
Hi
To do a simple mail flow problem, asks everybody to help to solve.Specific code is as follows:

*public void testExclusiveSplitDefault() throws Exception {*
*        KnowledgeBase kbase = createKnowledgeBase("BPMN2-ExclusiveSplitDefault.bpmn2");*
*        StatefulKnowledgeSession ksession = createKnowledgeSession(kbase);*
*        EmailWorkItemHandler emailHandler1 = new EmailWorkItemHandler("smtp.gmail.com","465", " mailto:username at gmail.com username at gmail.com", "password");*
*        emailHandler1.getConnection().setStartTls(true);*
*        ksession.getWorkItemManager().registerWorkItemHandler("Email",emailHandler1);* 
*         ksession.startProcess("com.sample.test");*
*     }*


When I execute the code, the console without exception, did not send a message to me, is this is what causes it? :-/
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/758479#758479]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120907/3435e095/attachment-0001.html 


More information about the jboss-user mailing list