Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Disable alfresco policy in Javascript.js
var context =;
var model =;
var policyBehaviourFilter = context.getBean('policyBehaviourFilter',;
try {
policyBehaviourFilter.disableBehaviour(node.nodeRef, model.TYPE_DOCUMENT_EMPLOYEE_QNAME);
// your code here
} finally {
policyBehaviourFilter.enableBehaviour(node.nodeRef, model.TYPE_DOCUMENT_EMPPLOYEE_QNAME);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.