-
1. Re: Trying to configure the Email service task in jBPM 5.4
andymcc Apr 4, 2013 2:16 PM (in response to andymcc)1 of 1 people found this helpfulI've now got it working.
From the Javamail documentation it appears there was a gmail specific fix and adding the latest jars (activation-1.1.1.jar and mail-1.4.7.jar) to my buildpath means that the Email service task now works.
Would still appreciate any advice on the other items (esp how to invoke setConnection as part of the BPMN specification).
-
2. Re: Trying to configure the Email service task in jBPM 5.4
kannan123 Dec 12, 2013 1:05 AM (in response to andymcc)Hi
I am also trying to configure the email in my workflow design. I have also included the jars that you mentioned in your last post. But no error or no response found, even the workflow not completed.
Help me....
Regards
KANNAN
-
3. Re: Trying to configure the Email service task in jBPM 5.4
lakshjee Apr 23, 2014 1:45 AM (in response to andymcc)Hi,
I am using JBPM 6 and i am also trying to configure email service task. but it is different with jbpm 5.4 and can any one assist me to where to add the code which is defined in https://community.jboss.org/message/793190#793190.
should the code add to the work item definition --> work definition or some other place?
and do i need to do any changes to the properties of email service task?
Please assist me soon since i am a newbie and i need to get this done soon.
Thank you in advance
-
4. Re: Re: Trying to configure the Email service task in jBPM 5.4
kersol Jul 22, 2014 9:48 AM (in response to lakshjee)Hi,
There are different ways to make the Email Task Service work in jBPM 5.4.
* if you are using Eclipse, you can add the piece of code (see https://community.jboss.org/message/793190#793190) in the Java source file that starts the process (for instance, when you create a new jBPM project, Eclipse proposes to add a sample JUnit test or a sample Java class to execute the process).
* still under Eclipse, if you do not want to add that piece of code, you can create a folder named META-INF. Create two new files in that folder : drools.session.conf and WorkItemHandlers.conf. See the provided screen shot for more details.
* if you are using the jBPM console to execute your process, you get an error "Could not find work item handler for Email". To fix that error, you need to change the content of the file WEB-INF\classes\META-INF\CustomWorkItemHandlers.conf in your \jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\jbpm-gwt-console-server.war. Just add the following line to CustomWorkItemHandlers.conf, with your own details :
"Email" : new org.jbpm.process.workitem.email.EmailWorkItemHandler("smtp.host.fr", "587", "myaddress@host.fr", "mypassword"),
Hope this helps.
-
screen-shot.png 166.4 KB
-