cancel
Showing results for 
Search instead for 
Did you mean: 

Mail service task

agiledevpro
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to create a process which sends an email to a recipient using the xml defined on activiti.org (Email Task). But when I start my process from activiti I get an error saying "Warining! unknown property is used in expression: ${recipient}".

I've added users by using telnet.

Have I missed something?



Thanks
7 REPLIES 7

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,
Could you create jUnit test for it please?
http://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin

agiledevpro
Champ in-the-making
Champ in-the-making
Hi Martin,

I run a JUnit test and it failed at ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("simpleEmailProcess");
The error message is java.lang.NullPointerException.

"simpleEmailProcess" is the name of the process.

I've attached my bpmn20.xml file. Maybe I've missunderstood how to use tasks?

Thanks

agiledevpro
Champ in-the-making
Champ in-the-making
I also want the mail to be sent to a gmail account, is this possible without configuring an email client?

Thank you

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

To send emails -> you have to configure process engine.
Where did you get null pointer exception?
Could you attach your jUnit test?

Regards
Martin

Hi,

What do you mean when you say "configure process engine"? - In my activiti.cfg.xml I've added properties for the mail server, do I need to do something else in order to configure the process engine?

I get null pointer exception in my test class called RiskReportTest in the method "testInstance" when startProcessInstanceBykey is called:

"ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("simpleEmailProcess");"


Thank you

agiledevpro
Champ in-the-making
Champ in-the-making
Hi,

What do you mean when you say "configure process engine"? - In my activiti.cfg.xml I've added properties for the mail server, do I need to do something else in order to configure the process engine?

I get null pointer exception in my test class called RiskReportTest in the method "testInstance" when startProcessInstanceBykey is called:

"ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("simpleEmailProcess");"


Thank you

agiledevpro
Champ in-the-making
Champ in-the-making
Hi,

It works now after adding my bpmn20.xml and cfg.xml to resources in my project Smiley Happy