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.
bpm_package.removeNode(bpm_package.children[0]); //this will unattach document from the wf var new_doc = companyhome.childByNamePath("Docs/my.pdf"); bpm_package.addNode(new_doc); //this is how you add "my.pdf" to that same wf