Interface AutomationService

  • All Superinterfaces:
    com.google.gwt.user.client.rpc.RemoteService

    @RemoteServiceRelativePath("automation")
    public interface AutomationService
    extends com.google.gwt.user.client.rpc.RemoteService
    The client side stub for the Automation Service.
    Since:
    8.1
    Author:
    Marco Meschieri - LogicalDOC
    • Method Detail

      • getRoutine

        GUIAutomationRoutine getRoutine​(long id)
                                 throws ServerException
        Loads a given routine from the database
        Parameters:
        id - identifier of the routine
        Returns:
        the routine retrieved by the server application
        Throws:
        ServerException - an error happened in the server application
      • getTrigger

        GUIAutomationTrigger getTrigger​(long id)
                                 throws ServerException
        Loads a given trigger from the database
        Parameters:
        id - identifier of the trigger
        Returns:
        the automation trigger retrieved by the server application
        Throws:
        ServerException - an error happened in the server application
      • applyTriggersToTree

        void applyTriggersToTree​(long rootId)
                          throws ServerException
        Applies the triggers on a root folder to all the subtree
        Parameters:
        rootId - identifier of the root folder
        Throws:
        ServerException - an error happened in the server application
      • execute

        void execute​(Long routineId,
                     String script,
                     Long[] docIds,
                     Long folderId)
              throws ServerException
        Executes a routine or a given script
        Parameters:
        routineId - identifier of the routine to execute
        script - automation script to execute
        docIds - selected documents (optional)
        folderId - selected folders (optional)
        Throws:
        ServerException - an error happened in the server application