Expose Decisions as Services

To call your decision model in integrations, you must add at least one decision service in the model. A decision service exposes one or more decisions of your model as public REST APIs.

A decision service consists of a set of input data and a set of decisions from a decision model.

Note:

Make sure your decisions are error-free before creating a decision service. Errors in the decisions propagate to the service you create, and appear in the Services panel. To fix errors, see Review and Fix Errors in a Decision.

Follow these steps to add a service to your decision model.

  1. In the decision designer, click Services Services icon on the sidebar.
  2. In the Services panel, click Add new service Add icon.
  3. In the Add Decision Service panel, enter a name for the decision service and click OK.
    The service is created and added to the Services panel.
  4. Click the service's name to expand it and enter the necessary data.
    1. Click the Output Decisions field, and select the decision to expose through the service.
    2. Similarly, click the Input Data field, and select the input data to expose through the service.
    You can add multiple decisions and input data items to a service.
  5. To delete a service, click Service Options icon next to the service name and select Delete.
    Here's an example of a decision service's endpoint URL. You can view it in the integration designer's configuration wizard. See Add a Decision Model to an Integration.
    https://<base_url>/decision/api/v1/decision-models/<project_name>-<decision_model_name>/versions/<decision_model_version>/active/definition/decision-services/<decision_service_name>

    Where:

    • base_url: is the base URL of your Oracle Integration instance.
    • project_name: is the name of your project in Oracle Integration.
    • decision_model_name: is the name of your decision model.
    • decision_model_version: is the version of your decision model.
    • decision_service_name: is the name of your decision service.