cancel
Showing results for 
Search instead for 
Did you mean: 

Sending an email from a ServiceTask

jsalvador
Champ in-the-making
Champ in-the-making
Hi folks!

I've got a workflow with a ServiceTask that gets data from a database to decide how to continue. There is two conditions, greater than (auto-rejected) and less than (accepted).

<ul>
<li>At the accepted case, the workflow goes to an UserTask, and an user decides about the situation and, in every possible case here, send an email to the initiator. Here there isn't any problem, I've got some problems with the email task, but I think it is an Alfresco problem.</li>
<li>At the auto-rejected case, the workflow goes <strong>from</strong> the ServiceTask <strong>to</strong> an Alfresco Email Task</li>
</ul>

The problem here is, when I'm testing the workflow at Alfresco, the accepted case works fine, but the auto-rejected not. The error message says

<blockquote>
Could not start the workflow
</blockquote>

I guess the reason of this could be that I'm sending an email from a ServiceTask instead of an UserTask…
1 REPLY 1

hari
Star Contributor
Star Contributor
Hi,

We use the service tasks too for sending the emails. We have close to 20+ processes live in production in various projects sending out emails from the service tasks. So I dont think there is any issue with that. I suggest you to revisit your code and see for possible causes of that issue.

Also your description is very abstract for any one in the forum to help. People here can help you better if you can post the code and the bpm that you are using.