-
1. EmailWorkItemHandler not found in drools5.2.0
salaboy21 Jan 26, 2011 4:03 PM (in response to odelyaholiday)you can copy that, and it will work.
Remember that WorkItems are domain specific and the main idea is that you can plug your own. So if you copy that handler it should work. Of course you will need a mail server running and configure the environment correctly.
Greetings.
-
2. EmailWorkItemHandler not found in drools5.2.0
odelyaholiday Jan 26, 2011 4:35 PM (in response to salaboy21)do I need to define it also in any conf file? or just register it as:
ksession.getWorkItemManager().registerWorkItemHandler("EMail", new EmailWorkItemHandler(ksession));
-
3. EmailWorkItemHandler not found in drools5.2.0
salaboy21 Jan 27, 2011 6:29 AM (in response to odelyaholiday)If you register it, it will work. If you want to see the custom work item in the palete you must create the conf file.
Remember that you must also have a node binded to "EMail" in your processes in order that the EmailWorkItemHandler will be executed.
By the way, why are you passing the ksession as a parameter?
Greetings.
-
4. EmailWorkItemHandler not found in drools5.2.0
odelyaholiday Jan 27, 2011 6:33 AM (in response to salaboy21)It was a mistake to send the kession. in the end I used:
EmailWorkItemHandler handler = new EmailWorkItemHandler();
handler.setConnection( "mail.smtp.host", "myemailPort", null, null );
ksession.getWorkItemManager().registerWorkItemHandler("EMail", handler);
-
5. EmailWorkItemHandler not found in drools5.2.0
salaboy21 Jan 27, 2011 6:37 AM (in response to odelyaholiday)Great, if you get it working, can you mark this question as answered?
Greetings!