Running Gloop Services
After you have created your Gloop Service, you may want to run it. Running a Gloop Service means executing the Gloop Steps defined in the service. It is a pretty straightforward process, just do the following:
Running the Service via Coder
- Open the Gloop Service by double clicking it in the Coder Navigator view.
To run the opened service, you can either:
- Right click on the Gloop Service Editor, and then select Run (in Coder Cloud) or Run As... > Gloop Service in Coder Studio; or
- Click on the button with the run icon in the toolbar.
Alternatively, you can also right click on the service in the Coder Navigator view and then select the run action from the appearing context menu there.
Shortcut for running
To run a service in Coder Studio, hit ; in Coder Cloud.
Concurrent Steps are run synchronously
If your service has inputs defined, the input dialog will pop up after you have selected the run command, where you will be able to set the values of your service's inputs:
Using Coder Studio, you can also export, import, and reset the service's inputs in the dialog.
Paste JSON or XML text; drag and drop JSON or XML files
In Coder Studio, aside from clicking on the input dialog's Import button and selecting the input file, you can simply drag the JSON or XML file to the dialog or press if the JSON or XML text is in your clipboard. Inputs will be provided as long as your input data matches the structure of that which is in the dialog.
After running the service, the inputs are persisted and will be used again when you try to run the service. The dialog will pop us as long as the Always ask for inputs checkbox is ticked. In Coder Studio, you can access the persisted inputs at the Run Configurations dialog, which you can open up via Run As... > Run Configurations.
Whilst the service is running, Coder will show the logs of the running service via the Console
view. When the service is terminated, you will see
<Gloop Service Completed> at the bottom of the Console view.
You will notice additional buttons in the toolbar:
Shows the messages logged during the execution of a service.
Show model output
Shows the values produced by the service in a Gloop Model viewer.
Show JSON output
Displays the service's outputs in JSON format.
Show XML output
Displays the service's outputs in XML format.
To show the outputs of your service in Coder Studio, click on the
<Click here to see output> link in the Console
view or the Show model output button in the Console view toolbar.
Coder Cloud immediately shows a visual representation of the outputs of the service.
Running the Service via HTTP
Another way to run a service is to invoke it via HTTP. Using this method, you will be able to run a service closely to the way it would be run in a production environment; for example, Concurrent Steps are actually executed asynchronously.
To invoke a service via HTTP, right-click the target Gloop Service in the Coder Navigator view and then click Invoke In Browser from the appearing context menu.
Coder will then open up a new browser tab and where you'll see a form for your service's inputs. Set the input arguments of your service and then hit the Invoke button at the bottom of the form to finally run your service.