Hi,
I have a review and reject workflow that works for everything that I have implemented, except email notifications. The settings for outbound email are set up for the alfresco server. I am also not modifying an OOB workflow from alfresco. The problem I am having is that in the ScriptTaskListener of the "management review" task, I have some javascript that will create and set up an email, very much like the adhoc task's email script. The listener triggers on the creation of the task. The problem stems from the last line in the script
<javascript> mail.execute(bpm_package); </javascript>
When I go to start the workflow in Share, I am unable to start it with this line in the code. Without this line of script, the workflow starts just fine. The question is, Is this line needed to send an email? If it isn't, that's fine by me. If it is, then how would I go about fixing this issue?
I have looked at various documentation and forum posts, but nothing has been able to solve my issue. I do know that the execute method will execute an action against a node. What exactly does this mean?
I will provide code on request.