Difference between revisions of "Automation events table"

From OpenKM Documentation
Jump to: navigation, search
Line 6: Line 6:
  
 
== Available environment variables ==
 
== 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 )
 
* AutomationUtils.DOCUMENT_KEYWORDS ( document list of keyword )
 +
 +
{| border="1" cellpadding="2" cellspacing="0"
 +
|'''Variable'''
 +
|'''Object class'''
 +
|-
 +
|AutomationUtils.DOCUMENT_MIME_TYPE
 +
|String
 +
|-
 +
|AutomationUtils.DOCUMENT_NAME
 +
|String
 +
|-
 +
|AutomationUtils.DOCUMENT_KEYWORDS
 +
|Set<String>
 +
|-
 +
|AutomationUtils.PARENT_NODE
 +
|NodeBase
 +
|}
 +
  
 
=== Create Document ===
 
=== Create Document ===
Line 23: Line 40:
 
|
 
|
 
|-
 
|-
|AutomationUtils.PARENT_NODE
+
|AutomationUtils.DOCUMENT_NAME
 
|X
 
|X
 
|X
 
|X
 
|6.5+
 
|6.5+
 
|-
 
|-
|AutomationUtils.DOCUMENT_NAME
+
|AutomationUtils.DOCUMENT_MIME_TYPE
 
|X
 
|X
 
|X
 
|X
 
|6.5+
 
|6.5+
 
|-
 
|-
|AutomationUtils.DOCUMENT_MIME_TYPE
+
|AutomationUtils.DOCUMENT_KEYWORDS
 
|X
 
|X
 
|X
 
|X
 
|6.5+
 
|6.5+
 
|-
 
|-
|AutomationUtils.DOCUMENT_KEYWORDS
+
|AutomationUtils.PARENT_NODE
 
|X
 
|X
 
|X
 
|X
 
|6.5+
 
|6.5+
|+
+
|-
 
|'''Post'''
 
|'''Post'''
 
|
 
|

Revision as of 18:27, 9 January 2014


Nota advertencia.png 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.DOCUMENT_KEYWORDS ( document list of keyword )
Variable Object class
AutomationUtils.DOCUMENT_MIME_TYPE String
AutomationUtils.DOCUMENT_NAME String
AutomationUtils.DOCUMENT_KEYWORDS Set<String>
AutomationUtils.PARENT_NODE NodeBase


Create Document

Pre Version
Variable For evaluation For changing
AutomationUtils.DOCUMENT_NAME X X 6.5+
AutomationUtils.DOCUMENT_MIME_TYPE X X 6.5+
AutomationUtils.DOCUMENT_KEYWORDS X X 6.5+
AutomationUtils.PARENT_NODE X X 6.5+
Post
Variable For evaluation For changing
AutomationUtils.DOCUMENT_NODE X 6.5+