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.
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 textappend copyright.js.sample
: Append the copyright line to text or HTML filesbackup.js.sample
: Simple document backup scriptbackup and log.js.sample
: Back up files and log the date and timeexample test script.js.sample
: Example of various API callsstart-pooled-review-workflow.js
: Starts the Pooled Review and Approve workflowtest return value.js.sample
: Return a value from a script—for the command servlet