listener - Alfresco moving document -


i have execution listener script, moves file during workflow folder, in folder execut.

when i'm starting workflow user files works good, document library in site doesn't work, showing error org.alfresco.scripts.scriptexception: 05190025 failed execute supplied script: destination node mandatory parameter

the folder tree in document library same.

var dest = companyhome.childbynamepath("execut");     (var = 0; < bpm_package.children.length; i++){         bpm_package.children[i].move(dest);     } 

what problem?

i'm understood problem is, code companyhome.childbynamepath("execut"); defines path users folder , moves documents document library folders user files folder. need define correct destination folder path in document library. how it?


document moves doc library users folder, need moves folder in document library , don't know how define path. i'm trying companyhome.childbynamepath("site/main/documentlibrary/execut"); doesn't work

update process defination below code.

var dest = companyhome.childbynamepath("sites/main/documentlibrary/execut"); (var = 0; < bpm_package.children.length; i++) {         bpm_package.children[i].move(dest); } 

you using wrong path.path site sites/main/documentlibrary/execut , not site/main/documentlibrary/execut


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -