Support for parameters in script actions


It's possible to create javascript actions using spring config e.g.

<bean id="runScript" parent="script">
<property name="scriptLocation">
<bean class="org.alfresco.repo.jscript.ClasspathScriptLocation">
<property name="publicAction">

These script actions can be exposed to the user via share-config and action forms. However, unlike Java actions, it’s not possible declare and pass in additional parameters that can be used by the script. This means you have to create a unique script for every variation of the script behaviour and also limits the use to simple actions (you can’t pass in parameters from the action form).

This task is to add the ability to (optionally) pass in parameters as args to script actions via the share action config (share-config-custom.xml) and/or as parameters exposed and captured from the action forms UI. Note, Java actions already support support this.



Testcase ID



All Replies
July 29, 2016, 8:39 PM

[This comment has been reassigned to as part of the Alfresco cloud migration project. The author of this comment was resplin] This issue was reported against a version of Alfresco Enterprise Edition that is in Limited Support. Alfresco Software will not implement further enhancements or improvements for products or versions in this support state. If this issue is impacting your deployment of Alfresco One Enterprise Edition, please contact support so that we can assist you. Customers with a support contract can request a bug fix in certain cases.

Current releases of Alfresco contain many improvements that address old problems. We are closing old issues so that we can better prioritize our efforts.

If you verify that the issue still exists in the latest release of Alfresco Community Edition, please reopen the issue. If you have any trouble reopening the issue, then leave a comment or email us at so that we can assist.

Thank you for collaborating with us on improving Alfresco.

All Replies
April 8, 2015, 4:26 AM

[This comment has been reassigned to as part of the Alfresco cloud migration project. The author of this comment was] We are not able to pass parameters to Javascript called by Bean.

Is there any provision or chances to do that ?

Won't Fix
Your pinned fields
Click on the next to a field label to start pinning.


All Replies


Mike Farman