08-17-2010 06:58 PM
08-18-2010 04:11 AM
08-18-2010 04:22 AM
<swimlane name="reviewer">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{people.getPerson("mike")}</actor>
</assignment>
</swimlane>
<event type="task-assign">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
<expression>
bpm_assignee = people.getPerson("mike");
bpm_assignee;
</expression>
<variable name="bpm_assignee" access="read,write" />
</script>
</action>
</event>
08-18-2010 04:55 AM
09-07-2010 09:34 AM
09-07-2010 04:25 PM
use <YOUR WORKFLOW>
var bpm_assignee* person mike
start
07-18-2011 05:12 PM
<userTask id="tarea1" name="Tarea Revisar" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="ak:tareaRevisar">
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
if (typeof bpm_workflowDueDate != 'undefined') task.setVariableLocal('bpm_dueDate', bpm_workflowDueDate);
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;
</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
execution.setVariable('ak_reviewOutcome', task.getVariable('ak_reviewOutcome'));
execution.setVariable('ak_wf_publicador', people.getPerson('admin'));
</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
execution.setVariable('ak_mail1', initiator.properties.email);
execution.setVariable('ak_mail2', bpm_assignee.properties.email);
</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
07-18-2011 11:32 PM
<task name="wf:approvedStaffBD">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<pooledactors>vinax</pooledactors>
</assignment>
</task>
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.