06-21-2009 02:46 AM
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
<expression>
var mail = actions.create("mail");
mail.parameters.to = initiator.properties["cm:email"];
mail.parameters.subject = "Content Approved";
comment = "";
if (token.comments.size() > 0)
comment = token.comments.get(0).message;
mail.parameters.text = "User has Approved the Content.!" + "\n" + "Comments : \"" + token.comments.get(0).message + "\"" + "\n" + "Description : \"" + bpm_workflowDescription + "\"";
mail.execute(bpm_package);
</expression>
</script>
</action>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="scwf:MyCom">
thanks,
06-21-2009 06:27 PM
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.