Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

Invoking Gloop/Groovy in a Gloop/Groovy File

This example demonstrates how we can invoke a Groovy method in Gloop and vice-versa.

Invoking a Groovy Method in Gloop

To invoke a Groovy method in Gloop, you just need to drag and drop the method to the Gloop service. A working example of this can be found under code/invokeGloop/gloop/InvokeGroovy.gloop.

Coder Studio Invoke Groovy method in Gloop

Coder Invoke Groovy method in Gloop

Invoking Gloop in a Groovy Method

To invoke a Gloop service in a Groovy file, we can get the invocation code by following the steps found in this page.

A working example of this can be found in code/invokeGloop/groovy/GloopInvoker.groovy.