07-24-2006 10:03 AM
07-25-2006 02:54 PM
03-16-2007 02:15 PM
This could be done with a custom action. For example, a custom action could be written that a) takes the author field from the content item, b) resolves the author to a username and associated email address, and c) emails the author an email using a pre-defined template. The action could be invoked by any number of events, such as via a workflow step or via a condition defined within a normal rule.
–Mike
03-17-2007 02:30 AM
03-21-2007 03:09 AM
03-23-2007 04:07 PM
03-23-2007 06:27 PM
03-23-2007 06:31 PM
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wf:adhoc">
<swimlane name="initiator"/>
<start-state name="start">
<task name="wf:submitAdhocTask" swimlane="initiator"/>
<transition name="" to="adhoc"/>
</start-state>
<swimlane name="assignee">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{bpm_assignee}</actor>
</assignment>
</swimlane>
<task-node name="adhoc">
<task name="wf:adhocTask" swimlane="assignee">
<event type="task-create">
<script>
if (bpm_workflowDueDate != void) taskInstance.dueDate = bpm_workflowDueDate;
if (bpm_workflowPriority != void) taskInstance.priority = bpm_workflowPriority;
</script>
</event>
</task>
<transition name="" to="completed">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
if (wf_notifyMe)
{
var mail = actions.create("mail");
mail.parameters.to = initiator.properties.email;
mail.parameters.subject = "Adhoc Task " + bpm_workflowDescription;
mail.parameters.from = bpm_assignee.properties.email;
mail.parameters.text = "It's done";
mail.execute(bpm_package);
}
</script>
</action>
</transition>
</task-node>
<task-node name="completed">
<task name="wf:completedAdhocTask" swimlane="initiator"/>
<transition name="" to="end"/>
</task-node>
<end-state name="end"/>
03-23-2007 06:49 PM
04-18-2007 10:35 AM
var mail = actions.create("mail");
var modifier = people.getPerson(document.properties.modifier);
mail.parameters.to = modifier.properties.email;
mail.parameters.subject = "Subject text";
mail.parameters.from = "alfresco@alfrescodomain.com";
mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/YourEmailTemplate.ftl");
mail.parameters.text = "Email body text";
mail.execute(document);
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.