I want to execute a Java script on content creation. The script should fetch a document from a url, given some parameters on a popup (same as the folder creation popup) and then upload it to alfresco.
I have followed the instructions here Adding a menu item to the "Create..." menu in DocLib | Alfresco Documentation but I can not find a way to initiate the Java code.
<config evaluator="string-compare" condition="DocumentLibrary">
<content id= ....
The function I used is onActionFormDialog, same as the document actions is done, but this doesn't seem to work.
<param name="itemId">...</param> Repository action id = Spring Bean id
I guess that the onActionFormDialog function can not be used here, but I can not find an alternative.
Thank you in advance.