Difference between revisions of "Automation events table"
From OpenKM Documentation
Line 17: | Line 17: | ||
|'''Version''' | |'''Version''' | ||
|- style="color:green;" | |- style="color:green;" | ||
+ | |'''Variable''' | ||
|'''For evaluation''' | |'''For evaluation''' | ||
|'''For changing''' | |'''For changing''' | ||
Line 22: | Line 23: | ||
|- | |- | ||
|AutomationUtils.PARENT_NODE | |AutomationUtils.PARENT_NODE | ||
− | | | + | |X |
+ | |X | ||
|6.5+ | |6.5+ | ||
|- | |- | ||
|AutomationUtils.DOCUMENT_NAME | |AutomationUtils.DOCUMENT_NAME | ||
− | | | + | |X |
+ | |X | ||
|6.5+ | |6.5+ | ||
|- | |- | ||
|AutomationUtils.DOCUMENT_MIME_TYPE | |AutomationUtils.DOCUMENT_MIME_TYPE | ||
− | | | + | |X |
+ | |X | ||
|6.5+ | |6.5+ | ||
|- | |- | ||
|AutomationUtils.DOCUMENT_KEYWORDS | |AutomationUtils.DOCUMENT_KEYWORDS | ||
− | | | + | |X |
+ | |X | ||
|6.5+ | |6.5+ | ||
|+ | |+ | ||
Line 41: | Line 46: | ||
| | | | ||
|- style="color:green;" | |- style="color:green;" | ||
+ | |'''Variable''' | ||
|'''For evaluation''' | |'''For evaluation''' | ||
|'''For changing''' | |'''For changing''' | ||
Line 46: | Line 52: | ||
|+ | |+ | ||
|AutomationUtils.DOCUMENT_NODE | |AutomationUtils.DOCUMENT_NODE | ||
+ | |X | ||
| | | | ||
|6.5+ | |6.5+ |
Revision as of 18:21, 9 January 2014
Under construction |
Events can be pre ( previously ) and post ( posterior ). For example pre document creation event, will be executed before document creation and then can be changed several event vars to change parent folder, document name among others. In case post document creation event, will be executed after document creation. In this case there're no associated vars to the event you'll get NodeDocument object to apply directly any change across OpenKM API.
Available environment variables
- AutomationUtils.PARENT_NODE ( changes parent node )
- AutomationUtils.DOCUMENT_NAME ( changes document name )
- AutomationUtils.DOCUMENT_MIME_TYPE ( changes document mime-type )
- AutomationUtils.DOCUMENT_KEYWORDS ( document list of keyword )
Create Document
Pre | Version | ||||||
Variable | For evaluation | For changing | |||||
AutomationUtils.PARENT_NODE | X | X | 6.5+ | ||||
AutomationUtils.DOCUMENT_NAME | X | X | 6.5+ | ||||
AutomationUtils.DOCUMENT_MIME_TYPE | X | X | 6.5+ | ||||
AutomationUtils.DOCUMENT_KEYWORDS | X | X | 6.5+ | Post | |||
Variable | For evaluation | For changing | AutomationUtils.DOCUMENT_NODE | X | 6.5+ |