<node name="forkProf">
<action class="org.alfresco.repo.workflow.jbpm.ForEachFork">
<foreach>#{bpm_assignees}</foreach>
<var>reviewer</var>
</action>
<transition to="profsEval"></transition>
</node>
<task-node name="profsEval">
<task name="asm:evaluationPostulation">
<timer name="delai" duedate="12 hours" transition="reject"></timer>
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{reviewer}</actor>
</assignment>
</task>
<transition name="reject" to="endFork">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var doc = companyhome.childByNamePath("Sites/studentPostulation/documentLibrary/Application/"+bpm_workflowDescription+"/infoFromProf.txt");
if(logger.isDebugEnabled())
logger.debug("try to reject the candidat");
if(doc != null){
var workingCopy = doc.checkout();
workingCopy.content += "Professeur : " + taskInstance.actorId + "\t\n";
workingCopy.content += "Note d'evaluation : " + asm_evaluation + "\t\n";
workingCopy.content += "Periode eventuelle : " + asm_periode + "\t\n";
workingCopy.content += "Commentaire : " + taskInstance.comments.get(0).message + "\t\n\n";
workingCopy.checkin();
}
</script>
</action>
</transition>
<transition name="approve" to="endFork">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var doc = companyhome.childByNamePath("Sites/studentPostulation/documentLibrary/Application/"+bpm_workflowDescription+"/infoFromProf.txt");
if(doc != null){
var workingCopy = doc.checkout();
workingCopy.content += "Professeur : " + taskInstance.actorId + "\t\n";
workingCopy.content += "Commentaire : " + taskInstance.comments.get(0).message + "\t\n\n";
workingCopy.checkin();
}
</script>
</action></transition>
</task-node>
<join name="endFork">
<transition to="deanDecision2"/>
</join>
<type name="asm:evaluationPostulation">
<title>Evaluation de la candidature</title>
<parent>bpm:workflowTask</parent>
<properties>
<property name="asm:evaluation">
<type>d:int</type>
</property>
<property name="asm:periode">
<type>d:text</type>
</property>
</properties>
<overrides>
<property name="bpm:packageItemActionGroup">
<default>read_package_item_actions</default>
</property>
<property name="bpm:reassignable">
<default>false</default>
</property>
</overrides>
</type>
taskInstance.getVariable("bpm:comment")
taskInstance.actorId
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.