01-30-2008 12:47 PM
<timer duedate="#{bwf_editDueDate}">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var mail = actions.create("mail");
mail.parameters.to = initiator.properties["cm:email"];
mail.parameters.subject = "Zeitüberschreitung: " + bpm_workflowDescription;
mail.parameters.from = "Alfresco";
mail.parameters.text = person.properties.firstName + " " + person.properties.lastName +
" hat den Auftrag " + bpm_workflowDescription + " nicht rechtzeitig erledigt.";
mail.execute(bpm_package);
</script>
</action>
</timer>
01-31-2008 05:34 AM
<decision name="DueDateDecision">
<transition name="tr2" to="Complete"></transition>
<transition name="" to="SetTimer">
<condition>#{bwf_editDuedate != null}</condition>
</transition>
</decision>
02-01-2008 07:45 AM
<task name="bwf:edit" swimlane="editor">
<event type="task-create">
<script>
if (bwf_editDueDate != void) taskInstance.dueDate = bwf_editDueDate;
taskInstance.priority = bpm_workflowPriority;
</script>
</event>
<timer duedate="#{bwf_editDueDate == null ? never : bwf_editDueDate}">
<action ref-name="sleepyheadAlert"/>
</timer>
</task>
<script>
<variable name="never" access="write"/>
<expression>
never = new Date(3000,0,1);
</expression>
</script>
(I didn't inline the variable since jBPM EL does not support the new operator as far as I know).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.