The service picker is a graphical user interface (GUI) for selecting a service, hence its name. The service picker is displayed when choosing a service to be invoked by an endpoint when it is triggered, a package during startup or shutdown, a Gloop API operation, and more.
Conditionally displaying services
Before displaying the list of selectable services, TORO Integrate will inspect all services first, and filter those that are compatible with the feature you are trying to use. In most cases, TORO Integrate compares the names and types of variables in your services against the names and types of parameters that the endpoint or functionality supports. If a service has a parameter whose name and type does not match the endpoint or functionality, it will not be included in the list.
The service you select from the service picker will be highlighted and a preview of that service's documentation (from) its comments) will be shown at the bottom panel. As seen in the screenshot above, Markdown is honored and rendered.
- Right click the
codedirectory of an Integrate package and select New > Gloop Service. Use
WatcherServiceas the name of the service and click Finish.
- Right click Endpoints and select New > Integrate Endpoint. Select Directory Watcher as the type of the
endpoint and use
watcheras its name then click Finish.
- After creating the endpoint, the endpoint configuration page should show up. To show the service picker, click the Choose… button beside the Service field.
The service picker will be shown displaying the list of services that are compatible with your directory watcher
endpoint. You should be able to see
WatcherService on the list.
Show hidden services? option
Some Java or Groovy methods are not visible in the service picker by default. These kinds of methods are called advanced services. A method is considered advanced if it is any of the following:
- A method of
- A synthetic method
- A method signature containing
- Annotated with
To view these hidden services, check the Show hidden services checkbox.
Creating a new service
- Click the New... button located at the bottom part of the service picker.
- Enter the name of your service.
- Select the type of service you want to create.
- Click the Next button.
- Select the properties that you want to use as inputs of your service.
- Click Finish.