Hello,
I'm trying to extend workflow webscript org/alfresco/repository/workflow/task-instances for one argument more.
What is the best practice in this case? I know that I must override the task-instances.get.desc.xml file and add my argument to <URL> and <args> section but what else? Is there some webscript's "main" JS file which I can extend to ensure the functionality?
Thank you very much.
Solved! Go to Solution.
Unfortunately, that web script is implemented as a Java-backed web script. Extending it is generally pretty tricky. The class in question is "TaskInstancesGet" found in the alfresco-remote-api sub-project. Modifying the task-instances.get.desc.xml is not necessary at all for adding a new URL parameter - URL parameters included in the "url" element of that file are purely informative and there is no functional requirement to list them there.
Unfortunately, that web script is implemented as a Java-backed web script. Extending it is generally pretty tricky. The class in question is "TaskInstancesGet" found in the alfresco-remote-api sub-project. Modifying the task-instances.get.desc.xml is not necessary at all for adding a new URL parameter - URL parameters included in the "url" element of that file are purely informative and there is no functional requirement to list them there.
Hello,
that helped me a lot!
In case I want to override bean id of alfresco-remote-api sub-project "webscript.org.alfresco.repository.workflow.task-instances.get", what would be the best place to put my custom java files with *-context.xml file for alfresco to load such bean?
Thank you.
Ok, I found the answer - Customizing bean files | Alfresco Documentation
Thank you for help.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
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.