Running a Groovy Service
- Right click on the Groovy class or script which contains the service1 you want to run, then click Invoke in Browser.
Select the service you want to run from the appearing dialog.
Aside from the services explicitly declared in your script, you many find other services by checking the Show hidden services checkbox. These services are from your class or script's superclass. Thus, if you have used inheritance, you will also see the services of the inherited class.
Click OK. A new browser tab will open up which displays the details of the service you are about to invoke.
- If your service has input parameters, you will see input elements on the page, which you may populate with sample data.
- Click Invoke to finally run the service.
Alternative way of running services
Another way to run services in Coder Studio is by opening the file and clicking the run icons beside the line numbers. You will find these icons across method signatures. Doing so will open the invoke window for the service.
Groovy Services, simply put, are Groovy methods or scripts. ↩