Class ExecuteTransServlet

    • Constructor Detail

      • ExecuteTransServlet

        public ExecuteTransServlet()
      • ExecuteTransServlet

        public ExecuteTransServlet​(TransformationMap transformationMap)
    • Method Detail

      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException,



        Executes transformation from the specified repository. Connects to the repository provided as a parameter, loads the transformation from it and executes it. Empty response is returned or response contains output of an error happened during the transformation execution. Response contains ERROR result if error happened during transformation execution.

        Example Request:

            GET /kettle/executeTrans/?rep=my_repository&user=my_user&pass=my_password&trans=my_trans&level=INFO


        name description type
        rep Repository id to connect to. query
        user User name to be used to connect to repository. query
        pass User password to be used to connect to repository. query
        trans Transfromation name to be loaded and executed. query
        level Logging level to be used for transformation execution (i.e. Debug). query
        *any name* All the other parameters will be sent to the transformation for using as variables. When necessary you can add custom parameters to the request. They will be used to set the transformation variables values.. query

        Response Body

        element: (custom)
        media types: application/xml

        Response contains error output of the transformation executed or nothing if the execution was successful.

        Example Error Response:

            Unexpected error executing the transformation:
        Unable to find transformation 'dummy-trans.ktr' in directory
            at org.pentaho.di.www.ExecuteTransServlet.doGet(
            at javax.servlet.http.HttpServlet.service(
            at javax.servlet.http.HttpServlet.service(
            at org.mortbay.jetty.servlet.ServletHolder.handle(
            at org.mortbay.jetty.servlet.ServletHandler.handle(
            at org.mortbay.jetty.servlet.SessionHandler.handle(
            at org.mortbay.jetty.handler.ContextHandler.handle(
            at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
            at org.mortbay.jetty.handler.HandlerCollection.handle(
            at org.mortbay.jetty.handler.HandlerWrapper.handle(
            at org.mortbay.jetty.Server.handle(
            at org.mortbay.jetty.HttpConnection.handleRequest(
            at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
            at org.mortbay.jetty.HttpParser.parseNext(
            at org.mortbay.jetty.HttpParser.parseAvailable(
            at org.mortbay.jetty.HttpConnection.handle(
            at org.mortbay.thread.QueuedThreadPool$

        Status Codes

        code description
        200 Request was processed.
        400 When missing mandatory param trans
        401 When authentication to repository fails
        404 When transformation is not found
        500 Internal server error occurs during request processing.
        Specified by:
        doGet in interface CartePluginInterface
        doGet in class javax.servlet.http.HttpServlet
      • executeTrans

        protected void executeTrans​(Trans trans)
                             throws org.pentaho.di.core.exception.KettleException