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.
var dest = companyhome.childByNamePath("Path toplevel/Rejected"); if (dest == null) dest = companyhome.childByNamePath("Path toplevel").createFolder("Rejected");
Sorry it did not work. To answer your first question: "var dest=" does the assignment to dest. You still have to make sure that the path to "Rejected" exists or is created on the fly…The second question someone else have to answer, I did not use the debug script options to debug my code!I have a question to you: did you create all the supporting files as well and made them known in Alfresco by modifying the appropriate context files? I am talking about the process model (needed), the messages file (optional), web client config file (needed). Just deploying from eclipse is not enough!It would help if you show snippets from your process model and workflow definition files.Rgrds, Rob