cancel
Showing results for 
Search instead for 
Did you mean: 

javascript rules away from repository

shlomi
Champ in-the-making
Champ in-the-making
Hi,
I want to create a rule, with the "execute a script" actions, but I dont want the script to sit in the repository. I need it to sit in the alfresco directories (whichever one will fit..) but not in the repository..

I know this is possible with webscripts, please let me know if this can be done with javascripts as triggers (business rules).

Good week,
Shlomi
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
This is not possible without some code changes - the Execute A Script action expects the javascript to be the content of a node in the repository.

Kevin

bedag-moo
Champ in-the-making
Champ in-the-making
You can of course put a mere "stub" JavaScript into the repository that only calls the corresponding method in the classpath-hosted JavaScript. But whether that helps depends on what you are trying to achieve, of course.