As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<transition name="approve" to="approved"> <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"> <script> var dest = bpm_context.childByNamePath("Approved"); for (var i = 0; i < bpm_package.children.length; i++) { bpm_package.children[i].move(dest); } </script> </action> </transition>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"> <!– Deplacement du fichier –> <script> var test = bpm_package; var doc = test.children[0]; var nameUH= userhome.properties.name; var myNode = companyhome.childByNamePath("User Homes/"+nameUH+"/ur_espace"); doc.move(myNode); </script> </action>