Class AutomationTool
- java.lang.Object
-
- com.logicaldoc.enterprise.automation.AutomationTool
-
public class AutomationTool extends Object
Utility methods to launch automation routines from inside an automation script- Since:
- 8.1.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description AutomationTool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
destroy()
String
execute(String routine, long tenantId, Map<String,Object> dictionary)
Executes a routine in the same execution thread.String
execute(String routine, long tenantId, Map<String,Object> dictionary, Map<String,Object> parameters)
Executes a routine in the same execution thread.void
fork(String routine, long tenantId, Map<String,Object> dictionary)
Executes a routine in a new execution threadvoid
fork(String routine, long tenantId, Map<String,Object> dictionary, Map<String,Object> parameters)
Executes a routine in a new execution thread
-
-
-
Method Detail
-
execute
public String execute(String routine, long tenantId, Map<String,Object> dictionary, Map<String,Object> parameters)
Executes a routine in the same execution thread. Returns the routine result- Parameters:
routine
- name of the routine to executetenantId
- identifier of the tenantdictionary
- the dictionary to pass to the routineparameters
- the parameters to pass to the routine- Returns:
- the result of the routine's execution
-
execute
public String execute(String routine, long tenantId, Map<String,Object> dictionary)
Executes a routine in the same execution thread. Returns the routine result- Parameters:
routine
- name of the routine to executetenantId
- identifier of the tenantdictionary
- the dictionary to pass to the routine- Returns:
- the result of the routine's execution
-
fork
public void fork(String routine, long tenantId, Map<String,Object> dictionary, Map<String,Object> parameters)
Executes a routine in a new execution thread- Parameters:
routine
- name of the routine to executetenantId
- identifier of the tenantdictionary
- the dictionary to pass to the routineparameters
- the parameters to pass to the routine
-
fork
public void fork(String routine, long tenantId, Map<String,Object> dictionary)
Executes a routine in a new execution thread- Parameters:
routine
- name of the routine to executetenantId
- identifier of the tenantdictionary
- the dictionary to pass to the routine
-
destroy
public static void destroy()
-
-