JBoss Community

To do a simple mail flow problem

created by leaf-xue in jBPM - View the full discussion

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", "username@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

Start a new discussion in jBPM at Community