Difference between revisions of "Scripting - OpenKM 5.1"
From OpenKM Documentation
Line 7: | Line 7: | ||
== Variables used == | == Variables used == | ||
'''java.lang.String eventType''': says the event that has fired the script | '''java.lang.String eventType''': says the event that has fired the script | ||
+ | |||
'''javax.jcr.Session session''': users session that executes the script | '''javax.jcr.Session session''': users session that executes the script | ||
+ | |||
'''javax.jcr.Node eventNode''': node that causes the event | '''javax.jcr.Node eventNode''': node that causes the event | ||
+ | |||
'''javax.jcr.Node scriptNode''': node where is stored the script | '''javax.jcr.Node scriptNode''': node where is stored the script | ||
[[Category: Administration Guide]] | [[Category: Administration Guide]] |
Revision as of 16:59, 9 March 2010
Scripting is an advanced feature - some esperimental - that enables administrator to execute some scripts in folders fired each time has been some events there ( for example uploading documents ). It could be useful for making automatic operations in all repository.
Variables used
java.lang.String eventType: says the event that has fired the script
javax.jcr.Session session: users session that executes the script
javax.jcr.Node eventNode: node that causes the event
javax.jcr.Node scriptNode: node where is stored the script