O'Reilly logo

Alfresco 4 Enterprise Content Management Implementation by Pallika Majmudar, Rajesh R Avatani, Snehal Shah, Jayesh Prajapati, Munwar Shariff, Vinita Choudhary, Vandana Pal, Amita Bhandari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Executing JavaScript as business rules

The built-in rules might not be sufficient to address all your business requirements. You can execute a JavaScript as an action in your business rule. If you need even more flexibility, you can write business rules in custom JavaScript files and execute them as actions.

Using built-in JavaScript as actions

You can execute a JavaScript by selecting Execute script as an action in the Rules Wizard. The Rules Wizard displays the list of built-in JavaScript, such as:

  • alfresco docs.js.sample: Search and log all the docs containing Alfresco text
  • append copyright.js.sample: Append the copyright line to text or HTML files
  • backup.js.sample: Simple document backup script
  • backup and log.js.sample: Back up files and log the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required