Class 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 Detail

      • AutomationTool

        public AutomationTool()
    • 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 execute
        tenantId - identifier of the tenant
        dictionary - the dictionary to pass to the routine
        parameters - 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 execute
        tenantId - identifier of the tenant
        dictionary - 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 execute
        tenantId - identifier of the tenant
        dictionary - the dictionary to pass to the routine
        parameters - 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 execute
        tenantId - identifier of the tenant
        dictionary - the dictionary to pass to the routine
      • destroy

        public static void destroy()