Alfresco only offers the possibility to link predefined actions to events of the system. For example, actions can be executed when a document is created or deleted (set default values, send an email, validate property values). The ecm4u Policy Scripting module extends Alfresco with the ability to execute a script stored in the repository when an event occurs.
The following events are supported:
- Document: created, deleted, modified
- Folder: created, deleted, modified
- Aspect: applied, removed
- Properties: on change
The script can be executed with extended privileges if required (system user or any other user ID). Changing the script is easily possible at runtime, i.e. without restarting Alfresco.
Usage
The condition for execution is customizable in a Spring configuration. As soon as a configurable condition related to the metadata of a document is met, a configurable JavaScript, which is stored in the Alfresco content repository, is called for each case. The JavaScript can, for example, change permissions on a document and create associations (references) in other directories. By mapping it as JavaScript, Alfresco administrators can customize the execution logic themselves without having to customize and recompile Java code.
Advantages of Policy Scripting over Alfresco Rules:
Unlike Alfresco Rules, the PolicyScripting module leverages Alfresco functionality Behavior, which is associated with document types and aspects so that automation is applied based on document types rather than depending on directory structures. This not only hits most business requirements better (such as approvals, document lifecycles), but is also much more performant compared to Alfresco rules.
- No performance degradation even with large data sets.
- Actions can optionally be executed with system rights to make changes in subspaces where the triggering user actually does not have sufficient permissions.
- Hazzle-free export/import of directories, since the logic is outsourced to JavaScript and SpringBean configuration (Alfresco rules are exported as well, in contrast)
- Fast and easy customization without Java programming and restarts, due to the use of scripts
- Easy debugging
Key Facts
- Execution of a script on events
- Performs better and is more flexible than Alfresco rules
- More stable system
- Increased flexibility
- Easy traceability
License
The license allows installation on a production Alfresco repository with up to 2,000 registered users, a standby, test and development system.
Maintenance and Support
The purchase price includes one year of software maintenance (updates) and support on the module via ecm4u support. After one year, 20% of the list price per year will be charged.
Demo
If you would like to test the module: Please do not hesitate to contact us!