07-28-2009 09:20 AM
<decision name="submitserialreview">
<transition name="endreview" to="endreview" />
<transition name="review" to="serialreview">
<condition>#{wcmwf_approveCnt < wcmwf_reviewerCnt}</condition>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<expression>
var mail = actions.create("mail");
mail.parameters.to = "recipient_email@xxxx.com";
mail.parameters.subject = "New Alfresco workflow submission: " + wcmwf_label + " by " + person.properties.userName;
mail.parameters.from = initiator.properties["cm:email"];
mail.parameters.text = person.properties.firstName + " " + person.properties.lastName + " has submitted the following content for your approval";
mail.execute(bpm_package);
</expression>
</script>
</action>
</transition>
</decision>
10-05-2010 04:53 AM
Hi,
I too have the same problem.Can anyone help me pls?
Thanks
<decision name="submitserialreview">
<transition name="endreview" to="endreview" />
<transition name="review" to="serialreview">
<condition>#{wcmwf_approveCnt < wcmwf_reviewerCnt}</condition>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var mail = actions.create("mail");
var to = "" ;
var from = initiator.properties.email ;
var subject = "Review content created by " + initiator.properties.userName ;
if(bpm_assignees.get(wcmwf_approveCnt).type == "{http://www.alfresco.org/model/content/1.0}person")
{
to = bpm_assignees.get(wcmwf_approveCnt).properties.email;
}
else
{
to = search.findNode(bpm_assignees.get(wcmwf_approveCnt)).properties['cm:email'];
}
mail.parameters.to = to ;
mail.parameters.subject = subject ;
mail.parameters.from = from ;
var mailText = "Review the content created by " + initiator.properties.userName + "\n";
mail.parameters.text = mailText;
mail.execute(bpm_package);
</script>
</action>
</transition>
</decision>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.