Skip to content

Overview

Development

Overview

IDEs

API Explorer

examples Package: Basic Gloop Steps

Introduction

Gloop steps are statements in Gloop. There are multiple types of Gloop steps, each used for a specific purpose. The examples package provides services demonstrating the various ways each of the basic Gloop steps could be used.

Not really asynchronous when debugging

Please take note that due to some limitations in the Coder debugger, asynchronous steps are executed synchronously when debugging. If you'd like to test asynchronous steps in an asynchronous fashion, the Invoke in Browser (or Invoke in New Tab) option should be used to invoke the Gloop service. To do this, right-click the service and select Invoke In Browser (or Invoke in New Tab) from the context menu.

*Invoke in Browser* option as seen in context menu

*Invoke in New Tab* option as seen in context menu

Running the Service

Under the Coder Navigator, expand the examples package entry and navigate to the code folder. Afterwards, look for the basicSteps package. This package contains the files shown below:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
examples
├── ...
└── code
    └── ...
    └── basicSteps
        ├── BlockStep.gloop
        ├── ConcurrentStep.gloop
        ├── ForkStep.gloop
        ├── GloovyStep.gloop
        ├── IterateStep.gloop
        ├── MapStep.gloop
        ├── RandomStep.gloop
        └── WhileBreakStep.gloop

Each service is named after the step it demonstrates the usage of. Simply run these services to familiarize yourself with the different step types; line comments are provided for further explanation.

No BreakStep.gloop?

The break step example is already included in the WhileBreakStep.gloop service as by itself, a break step cannot demonstrate its intended use.