Hello, I would like to move some documents inside TaskListener.
I use:
var node = companyhome.childByNamePath(DESTINATION) doc.move(node);
How am I supposed to write the DESTINATION ?
Let's say the path is: (copied from the node browser)
/app:company_home/st:sites/cm:sample-project/cm:documentLibrary/cm:_x0030_Directory_x0020_With_x0020__x0020_Whitespace/cm:_x0030_Final
(Sites/sample project/documentLibrary/Directory With Whitespace/Final)
The more specific question, how to enter the destination with a whitespace character? (I tried the one above but it does not work )
Error: Caused by: java.lang.IllegalArgumentException: Destination Node is a mandatory parameter
Solved! Go to Solution.
For future readers, path CAN contain whitespaces and it should be formatted just as you see it (without st:, cm:, etc).
For example:
Sites/my-site/documentLibrary/Dir With Whitespace/Final
is correct.
For future readers, path CAN contain whitespaces and it should be formatted just as you see it (without st:, cm:, etc).
For example:
Sites/my-site/documentLibrary/Dir With Whitespace/Final
is correct.
Hi @upforsin,
Thanks for pposting your solution - really helpful to other users.
Cheers,
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
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.