Class GloopInvoker


  • public final class GloopInvoker
    extends Object
    Provides extension methods for invoking Gloop services.
    • Constructor Detail

      • GloopInvoker

        public GloopInvoker()
    • Method Detail

      • gloop

        public static GloopModel gloop​(String name,
                                       Object... inputs)
                                throws GloopException
        Runs a gloop service using its name with provided inputs, automatically creating an execution context.
        Parameters:
        name - name of the gloop service
        inputs - the inputs to be passed to the gloop service, following the order defined on the service
        Returns:
        output of the gloop service
        Throws:
        GloopException
      • gloop

        public static GloopModel gloop​(String name,
                                       Collection inputs)
                                throws GloopException
        Runs a gloop service using its name with provided inputs, automatically creating an execution context.
        Parameters:
        name - name of the gloop service
        inputs - the inputs to be passed to the gloop service, following the order defined on the service
        Returns:
        output of the gloop service
        Throws:
        GloopException
      • gloop

        public static GloopModel gloop​(String name,
                                       Map inputs)
                                throws GloopException
        Runs a gloop service using its name with provided inputs, automatically creating an execution context.
        Parameters:
        name - name of the gloop service
        inputs - the inputs to be passed to the gloop service
        Returns:
        output of the gloop service
        Throws:
        GloopException
      • gloop

        public static GloopModel gloop​(String name,
                                       GloopModel input)
                                throws GloopException
        Runs a gloop service using its name with provided input, automatically creating an execution context.
        Parameters:
        name - name of the gloop service
        input - model that contains the inputs to be passed to the gloop service (empty by default)
        Returns:
        output of the gloop service
        Throws:
        GloopException
      • gloop

        public static GloopModel gloop​(GloopModel input,
                                       String name)
                                throws GloopException
        Runs a gloop service using its name with provided input, automatically creating an execution context.
        Parameters:
        input - model that contains the inputs to be passed to the gloop service
        name - name of the gloop service
        Returns:
        output of the gloop service
        Throws:
        GloopException
      • gloop

        public static GloopModel gloop​(String name,
                                       GloopExecutionContext context,
                                       Object... inputs)
                                throws GloopException
        Runs a gloop service using its name with provided inputs. Note that context must be closed if there are any object that needs to be closed (e.g. database connections and cursors) or use sibling methods to automatically create and close the context.
        Parameters:
        name - name of the gloop service
        context - execution context for the service
        inputs - the inputs to be passed to the gloop service, following the order defined on the service
        Returns:
        output of the gloop service
        Throws:
        GloopException
      • gloop

        public static GloopModel gloop​(String name,
                                       GloopExecutionContext context,
                                       Map inputs)
                                throws GloopException
        Runs a gloop service using its name with provided inputs. Note that context must be closed if there are any object that needs to be closed (e.g. database connections and cursors) or use sibling methods to automatically create and close the context.
        Parameters:
        name - name of the gloop service
        context - execution context for the service
        inputs - the inputs to be passed to the gloop service
        Returns:
        output of the gloop service
        Throws:
        GloopException
      • gloop

        public static GloopModel gloop​(GloopModel input,
                                       GloopExecutionContext context,
                                       String name)
                                throws GloopException
        Runs a gloop service using its name with provided input. Note that context must be closed if there are any object that needs to be closed (e.g. database connections and cursors) or use sibling methods to automatically create and close the context.
        Parameters:
        input - model that contains the inputs to be passed to the gloop service
        context - execution context for the service
        name - name of the gloop service
        Returns:
        output of the gloop service
        Throws:
        GloopException