Difference between revisions of "Automation events table"
From OpenKM Documentation
(→Create Document) |
|||
Line 88: | Line 88: | ||
|6.5+ | |6.5+ | ||
|- | |- | ||
− | |AutomationUtils. | + | |AutomationUtils.DESTINATION_FOLDER_NODE |
|X | |X | ||
|X | |X | ||
|6.5+ | |6.5+ | ||
|- | |- | ||
− | |AutomationUtils. | + | |AutomationUtils.NAME |
|X | |X | ||
|X | |X | ||
|6.5+ | |6.5+ | ||
|- | |- | ||
− | |AutomationUtils. | + | |AutomationUtils.DOCUMENT_MIME_TYPE |
|X | |X | ||
|X | |X | ||
|6.5+ | |6.5+ | ||
|- | |- | ||
− | |AutomationUtils. | + | |AutomationUtils.KEYWORDS |
|X | |X | ||
|X | |X | ||
|6.5+ | |6.5+ | ||
|- | |- | ||
− | |AutomationUtils. | + | |AutomationUtils.NOTES |
|X | |X | ||
|X | |X | ||
Line 143: | Line 143: | ||
|6.5+ | |6.5+ | ||
|} | |} | ||
− | |||
=== Move Document === | === Move Document === |
Revision as of 12:15, 11 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
Variable | Object class | Description |
AutomationUtils.CATEGORIES | Set<String> | List of categories |
AutomationUtils.CREATION_DATE | Calendar | Creation date |
AutomationUtils.DESTINATION_FOLDER_NODE | NodeFolder | Destination folder |
AutomationUtils.DOCUMENT_MIME_TYPE | String | Document mime type |
AutomationUtils.DOCUMENT_NAME | String | Document name |
AutomationUtils.DOCUMENT_NODE | NodeDocument | Document node |
AutomationUtils.FOLDER_NODE | NodeFolder | Folder node |
AutomationUtils.KEYWORDS | Set<String> | List of keywords |
AutomationUtils.NOTES | List<NodeNote> | List of notes |
AutomationUtils.PROPERTY_GROUPS | Set<NodeProperty> | List of property groups ( metadata groups ) |
AutomationUtils.RECORD_NODE | NodeRecord | Record node |
AutomationUtils.TITLE | String | Title |
AutomationUtils.WIKIPAGE | WikiPage | The wiki page |
Document
Create Document
Pre | Version | ||||||
Variable | For evaluation | For changing | |||||
AutomationUtils.CATEGORIES | X | X | 6.5+ | ||||
AutomationUtils.CREATION_DATE | X | No | 6.5+ | ||||
AutomationUtils.DESTINATION_FOLDER_NODE | X | X | 6.5+ | ||||
AutomationUtils.NAME | X | X | 6.5+ | ||||
AutomationUtils.DOCUMENT_MIME_TYPE | X | X | 6.5+ | ||||
AutomationUtils.KEYWORDS | X | X | 6.5+ | ||||
AutomationUtils.NOTES | X | X | 6.5+ | ||||
AutomationUtils.PROPERTY_GROUPS | X | X | 6.5+ | ||||
AutomationUtils.TITLE | X | X | 6.5+ | ||||
AutomationUtils.WIKIPAGE | X | X | 6.5+ | ||||
Post | |||||||
Variable | For evaluation | For changing | AutomationUtils.DOCUMENT_NODE | X | No | 6.5+ |
Move Document
Pre | Version | ||||||
Variable | For evaluation | For changing | |||||
AutomationUtils.DOCUMENT_NODE | X | No | 6.5+ | ||||
AutomationUtils.DESTINATION_FOLDER_NODE | X | X | 6.5+ | ||||
Post | |||||||
Variable | For evaluation | For changing | AutomationUtils.DOCUMENT_NODE | X | No | 6.5+ |
Update Document
Pre | Version | ||||||
Variable | For evaluation | For changing | |||||
AutomationUtils.DOCUMENT_NODE | X | No | 6.5+ | ||||
Post | |||||||
Variable | For evaluation | For changing | AutomationUtils.DOCUMENT_NODE | X | No | 6.5+ |
Folder
Create folder
Pre | Version | ||||||
Variable | For evaluation | For changing | |||||
AutomationUtils.DESTINATION_FOLDER_NODE | X | X | 6.5+ | ||||
AutomationUtils.CATEGORIES | X | X | 6.5+ | ||||
AutomationUtils.CREATION_DATE | X | No | 6.5+ | ||||
AutomationUtils.NAME | X | X | 6.5+ | ||||
AutomationUtils.KEYWORDS | X | X | 6.5+ | ||||
AutomationUtils.NOTES | X | X | 6.5+ | ||||
AutomationUtils.PROPERTY_GROUPS | X | X | 6.5+ | ||||
AutomationUtils.WIKIPAGE | X | X | 6.5+ | ||||
Post | |||||||
Variable | For evaluation | For changing | AutomationUtils.RECORD_NODE | X | No | 6.5+ |
Record
Create record
Pre | Version | ||||||
Variable | For evaluation | For changing | |||||
AutomationUtils.DESTINATION_FOLDER_NODE | X | X | 6.5+ | ||||
AutomationUtils.NAME | X | X | 6.5+ | ||||
AutomationUtils.TITLE | X | X | 6.5+ | ||||
Post | |||||||
Variable | For evaluation | For changing | AutomationUtils.RECORD_NODE | X | No | 6.5+ |