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:…
mail.parameters.to = bpm_assignees.properties["cm:email"];
…
…
mail.parameters.to = bpm_assignees.properties.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)orCannot read property "email" from undefined (AlfrescoScript#1)My workflow is something like this:…
<node name="startreview">
<action class="org.alfresco.repo.workflow.jbpm.ForEachFork">
<foreach>#{bpm_assignees}</foreach>
<var>reviewer</var>
</action>
<event type="node-enter">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var mail = actions.create("mail");
mail.parameters.to = bpm_assignees.properties["cm:email"];
mail.parameters.subject = "New task on Alfresco!!! " + bpm_workflowDescription;
mail.parameters.from = "admin@test.test";
mail.parameters.text = "Please Approve or Reject …";
mail.execute(bpm_package);
</script>
</action>
</event>
<transition name="toApprove" to="toApprove" />
</node>
…Can anyone help please!!!Thanks!!João Duarte