cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Script using Create Rule in v.1.3

dvanberg
Champ in-the-making
Champ in-the-making
I'm working with the 1.3 version and it's great! Smiley Very Happy 

I'm trying to create a rule which uses a script.  I cannot figure out how to store the script such that it is selectable from the drop-down of available scripts in the rule creation wizard.

The wiki for the new Java Script feature mentions that a script can be run as part of a rule, but doesn't say how to save/access the script. 

Any help will be greatly appreciated.

Dave
11 REPLIES 11

kevinr
Star Contributor
Star Contributor
Kevin,
That would be very useful!

We would need to be able to limit the action to a specific document or space.  Would that also be possible?

Dave

Many of the current externalised actions are specific to a space/document Id so yes.

Thanks,

Kevin

kevinr
Star Contributor
Star Contributor
I don't think there will be time to add support for a <script> element or similar in the external definition of an action. However saying that, configured actions support executing URLs when clicked (using the 'http' element) - using this in combination with URLs you create that call the Script Command Servlet means you can call scripts with actions!

Thanks,

Kevin