1 Reply Latest reply on Sep 7, 2012 2:49 AM by Esteban Aliverti

    To do a simple mail flow problem

    leaf-xue Newbie

      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?