Understanding the Execution Service API

The Execution Service manages jobs, which represent the execution of the tasks available in the application. For more details, please refer to Chapter Understanding the Execution Service.

The Execution Service provides a RESTful API. For more details on the Execution Service API endpoints, please refer to the Execution Service OpenAPI documentation. For convenience, the Execution Service OpenAPI specification file can be converted to most languages using OpenAPI Generator.

The Execution Service API can be invoked from Java through the client class ExecutionServiceClient interface. For more details, please refer to the ExecutionServiceClient JavaDoc. This interface is provided by the com.decisionbrain.gene:execution-service-client library. It must be configured by including the annotation @EnableExecutionServiceClient in the configuration of your microservice.

To be able to use this API, import the library execution-service-client :

dependencies {
    implementation 'com.decisionbrain.gene:execution-service-client:${versions.decisionbrain.dbgene}'
}

Be sure to configure the Execution Service URL and port in the application.yml of your service. Here is an example of the configuration:

services:
    execution:
        host: localhost
        port: 8081