Package com.logicaldoc.core.automation
Class Automation
java.lang.Object
com.logicaldoc.core.automation.Automation
Represents the automation scripting engine
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAutomation
(String logTag) Automation
(String logTag, Locale locale, long tenantId) -
Method Summary
-
Field Details
-
SYSTEM_DICTIONARY
- See Also:
-
CURRENT_DATE
- See Also:
-
PRODUCT
- See Also:
-
LOCALE
- See Also:
-
SERVER_URL
- See Also:
-
TENANT_ID
- See Also:
-
DICTIONARY
- See Also:
-
KEYS
- See Also:
-
CONTEXT
- See Also:
-
PARAMETERS
- See Also:
-
PARAMETERS_NAMES
- See Also:
-
-
Constructor Details
-
Automation
public Automation() -
Automation
-
Automation
-
-
Method Details
-
initialize
public static void initialize() -
evaluate
public String evaluate(String expression, Map<String, Object> clientDictionary) throws AutomationExceptionEvaluate a given expression. The given dictionary will be integrated byprepareDictionary(Map)
:- Parameters:
expression
- The string expression to processclientDictionary
- The dictionary to use- Returns:
- The processed result
- Throws:
AutomationException
- the script has been evaluated but produced an error
-
evaluate
public void evaluate(Map<String, Object> clientDictionary, Reader reader, Writer writer) throws IOException, AutomationExceptionEvaluate a given expression. The given dictionary will be integrated byprepareDictionary(Map)
- Parameters:
clientDictionary
- dictionary to be passed to the enginereader
- the reader on the automation codewriter
- the writer that will receive the output- Throws:
IOException
- cannot read from readerAutomationException
- the script has been evaluated but produced an error
-