valle [https://community.jboss.org/people/valle] created the discussion
"Re: How to use Email service in JBPM 5.x?" To view the discussion, visit: https://community.jboss.org/message/755944#755944 -------------------------------------------------------------- it's working! I've got a simple mail application running now and like you said, there shouldn't anything more block me from integrating this in more sophisticated workflows. thanks everybody :) in case someone is facing a similar problem, this is the code snippet I used (in ProcessMain.java): // load up the knowledge base KnowledgeBase kbase = readKnowledgeBase(); StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(); EmailWorkItemHandler emailHandler = new EmailWorkItemHandler(); emailHandler.setConnection("smtp.gmail.com", "587", "<username>@gmail.com", "<password>"); emailHandler.getConnection().setStartTls(true); ksession.getWorkItemManager().registerWorkItemHandler("Email", emailHandler); // start a new process instance ksession.startProcess("com.sample.bpmn.hello"); -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/755944#755944] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
