Hi guys,
          Iam trying to send email through drools by using bpmn.xml...in
order to do so i need to register a work item handler into my session.

I have done in this way

         ksession.getWorkItemManager().registerWorkItemHandler("Email",
emailWorkItemHandler);

And this is my class for that handler

         public class  NotificationWorkItemHandler implements
WorkItemHandler {


          public void executeWorkItem(WorkItem workItem, WorkItemManager 
manager) {

            // extract parameters

            String from = (String) workItem.getParameter("From");

            String to = (String) workItem.getParameter("To");

            String message = (String) workItem.getParameter("Message");

            String priority = (String) workItem.getParameter("Priority");

            // send email

            *EmailService service =
ServiceRegistry.getInstance().getEmailService();*

            service.sendEmail(from, to, "Notification", message);

            // notify manager that work item has been completed

            manager.completeWorkItem(workItem.getId(), null);

          }

My issue is Email service need some import but I cant see what needs to be
included....
Could any one help me out in this issue?


Thanks in advance 
Anjali



--
View this message in context: 
http://drools.46999.n3.nabble.com/Email-Service-tp3506142p3506142.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to