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="reject" to="rejected"> <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"> <script> var myRoot=bpm_context.parent; // a workaround for the missing company_home root object var myUserhome=initiator.properties['cm:homeFolder']; var archiveFolder = myRoot.childByNamePath("Arbeitsbereich/Personal/Personalanforderungen/Abgelehnt"); for (var i = 0; i < bpm_package.children.length; i++) { bpm_package.children[i].copy(archiveFolder); } </script> </action> </transition>