Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Alfresco 3 Enterprise Content Management Implementation

You're reading from   Alfresco 3 Enterprise Content Management Implementation How to customize, use, and administer this powerful, Open Source Java-based Enterprise CMS

Arrow left icon
Product type Paperback
Published in Jun 2009
Publisher Packt
ISBN-13 9781847197368
Length 600 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Toc

Table of Contents (22) Chapters Close

Alfresco 3 Enterprise Content Management Implementation
Credits
About the Author
About the Co-Authors
Acknowledgements
About the Reviewers
Preface
1. Introduction to Alfresco FREE CHAPTER 2. Installing Alfresco 3. Getting Started with Alfresco 4. Implementing Membership and Security 5. Implementing Document Management 6. Implementing Business Rules 7. Extending the Alfresco Content Model 8. Implementing Workflow 9. Integrating External Applications with Alfresco 10. Advanced Collaboration Using Alfresco Share 11. Customizing the User Interface 12. Search 13. Implementing Imaging and Forms Processing 14. Administering and Maintaining the System Index

Executing JavaScript as business rules


The built-in rules might not be sufficient to address all of your business requirements. You can execute JavaScript code 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.

Use built-in JavaScript as actions

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

  • backup.js

  • append_copyright.js

  • backup_and_log.js

The sample backup.js script creates a backup of a file by copying it to a backup space. This might be required in some business situations. When using a document in your space, try running backup.js as an action and observe the results.

Extend business rules with custom JavaScript

The Rules Wizard lists all of the JavaScript files that are available in the Company Home > Data Dictionary > Scripts space. You can extend your business...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image