12-19-2006 03:04 AM
12-19-2006 05:54 AM
12-19-2006 06:05 AM
12-19-2006 08:46 AM
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var dest = bpm_context.childByNamePath("DestFolder");
for (var i = 0; i < bpm_package.children.length; i++)
{
bpm_package.children[i].move(dest);
}
</script>
</action>
03-08-2007 09:52 AM
But that can working only for admin and coordinator users.
In other way you need to define dedicated permissions to do move !
03-08-2007 10:14 AM
public Node childByNamePath(String path)
{
…
}
// TODO: find out why this doesn't work - the function defs do not seem to get found
I suggest you usepublic Node[] childrenByXPath(String xpath)
You just have to learn XPath syntax and JSR170 specification on repository navigation if you don't know them already.
03-08-2007 10:19 AM
Just a hint,
if you check the code from SVN (here) you can read this:.public Node childByNamePath(String path)
{
…
}
// TODO: find out why this doesn't work - the function defs do not seem to get found
03-08-2007 10:30 AM
03-09-2007 04:07 AM
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var myRoot=bpm_context.parent;
var myUserhome=initiator.properties['cm:homeFolder'];
var archiveFolder = myRoot.childByNamePath("Alfresco/Espace 1");
for (var i = 0; i < bpm_package.children.length; i++) {
bpm_package.children[i].copy(archiveFolder);
}
</script>
</action>
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.