AnsweredAssumed Answered

execute a self defined java script

Question asked by aditya on Nov 1, 2006
Latest reply on Nov 2, 2006 by kevinr

I am using alfresco 1.4RC and mysql as database. I wish to execute a java script file with the help of content rules. I copied an exisiting js file (backup.js) located in
Company Home >> Data Dictionary >> Scripts

and copied it back after renaming it. Then I created a content rule to execute this newly added java script to be applied on an inbound file.

When I try adding a new content to the space it gives me following error

  Please correct the errors below then click OK.
A system error happened during the operation: Transaction didn't commit: Failed to execute script 'workspace://SpacesStore/fa9bba8e-6988-11db-8dcc-939f14851605': illegal character (AlfrescoScript#1)

and the file was not added to the space.

Can someone please suggest where am i going wrong.

Aditya Malpani