Search

Home

Home

Creating a Webservice Trigger

Creating a Webservice Trigger

To configure GRAVITY so it can be invoked by external software as a Webservice, you must select the Triggers option from the main menu.

Select New… to add a new configuration for automatically starting a GRAVITY application.

image

After selecting New…, choose the type of automatic invocation from the dropdown. To run the GRAVITY application as a Webservice function, choose Webservice.

image

In Properties, select the GRAVITY application (project) to be associated with this configured invocation from now on.

image

To finish the configuration, enter a unique name in the Alias field (required to create the service access endpoint) and enable Check authentication.

image
icon
Learn more about authenticating services in GRAVITY.

If the project uses parameters, they appear in the Parameters panel as a list in the name–value format. You can set a default parameter value for the trigger by clicking the value field.

image

If the trigger does not receive a value for this parameter from the invocation (e.g., REST API, database, RabbitMQ), the default value will be used and passed to the project.