AnsweredAssumed Answered

Notify assignees by email

Question asked by joaotpd on Aug 20, 2008
Latest reply on Jul 3, 2009 by jayjayecl
Hi all!
I'm using alfresco-community-tomcat-2.9.0B on linux…
I create a new workflow that allows to send tasks to many users… Now i want to notify them all with an email… I've tried things like: =["cm:email"]; =;

… but nothing seems to work… alfresco keep saying:
A system error happened during the operation: Failed to signal transition 'null' from workflow task 'jbpm$347'.
In the log file i can read something like:
Cannot read property "cm:email" from undefined (AlfrescoScript#1)
Cannot read property "email" from undefined (AlfrescoScript#1)

My workflow is something like this:

<node name="startreview">
        <action class="org.alfresco.repo.workflow.jbpm.ForEachFork">
        <event type="node-enter">
           <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                    var mail = actions.create("mail");
                    mail.parameters.subject = "New task on Alfresco!!! " + bpm_workflowDescription;
                    mail.parameters.from = "admin@test.test";
                    mail.parameters.text = "Please Approve or Reject …";
        <transition name="toApprove" to="toApprove" />

Can anyone help please!!!

João Duarte