Created
October 29, 2017 11:22
-
-
Save jgoldhammer/442b18c730438114925f57616205203e to your computer and use it in GitHub Desktop.
alfresco-jscript-extension rules example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// log the docs that currently contain the word 'Alfresco' to a log file | |
var logFile = space.childByNamePath("alf docs.txt"); | |
if (logFile == null) | |
{ | |
logFile = space.createFile("alf docs.txt"); | |
} | |
rules.enableRules(logFile); | |
print(rules.rulesEnabled(logFile)); | |
rules.disableRules(logFile); | |
print(rules.rulesEnabled(logFile)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment