cancel
Showing results for 
Search instead for 
Did you mean: 

Scripts don't show up as options when creating a new rule that uses 'Execute Script' as an action.

tepee
Champ in-the-making
Champ in-the-making
I currently trying to evaluate Alfresco Community Edition 5.1(201605).

After uploading a script in the reposityory -> data dictionary -> scripts, setting its extension to ".js" and set its MIME type to "JavaScript", I tried to use the script as an action in a new rule.
However, no script including the uplodaded script didn't show up and a blank text box sits when I select "Execute script". Even if I typed the name of the script, there appeared the error message
"There is an error in the field." Please tell me if there is any configuration I would have left undone or any information about this.

Thank you.
19 REPLIES 19

michael_mrotzek
Champ on-the-rise
Champ on-the-rise
I can confirm this behaviour. The Execute Action section of a rule does not render select controls for actions execute script, add aspect or transform.

Hello,

did you solve the problem since 17 of august ? I have exactly the same behaviour when trying to create a rule which launches a script : no dropdown list of available scripts.

thank you,

As I know there is no solution yet. To set up a script e.g. you can paste the nodeRef (workspace://SpacesStore/XXX) of the script into the input form.

I even do not know if it will be fixed in the new version, you may try the early access version Alfresco Community Edition file list 201609-EA

gbousquet
Champ in-the-making
Champ in-the-making

I still have the bug but found a workaround :

- find the node address of the script you want to apply. For example : workspace://SpacesStore/bb44c6fe-3a76-4a6e-b584-f037259927c2
    you cand find it in the url  of the script  in the data dictionary or in the html code of the form for the rule .

- paste the node address in the text input.

That's done.

now waiting for a patch.

jpotts
World-Class Innovator
World-Class Innovator

I cannot recreate this problem with 201605-GA running on Mac OS X, see screenshot.

Screen Shot 2016-10-10 at 1.43.01 PM.png

I tested both with files created in the online editor as well as files uploaded to the Scripts folder.

Do you have any AMPs or other customizations installed?

gbousquet
Champ in-the-making
Champ in-the-making

I have the problem in two fresh install on windows 10 and windows server 2012, both 64bits.

No AMP or customization.

installer : alfresco-community-installer-201604-win-x64.exe

no dropdown list for choosing the script.

with french flavor 😉

jpotts
World-Class Innovator
World-Class Innovator

Have you completely cleared out your browser cache? If so, and the problem persists, it must be something Windows-specific.

gbousquet
Champ in-the-making
Champ in-the-making

Problem persists with chrome and firefox, after cleaning the cache. But I just tested in Opera and it works like a charm. So, not a server-side problem (?).

douglascrp
World-Class Innovator
World-Class Innovator

You should try to use the browser's web developer tools and try to identify any http call error or any javascript error using the console.