Document toolboxDocument toolbox

Avola Decision Explorer

Welcome to this tutorial on Decision Explorer for Mendix!

Decision Explorer is an extension for Mendix that allows users to effortlessly connect and implement decision logic and business rules created in Avola Decision.

In this guide we will help you through the steps to:

  • Install and connect
    Learn how to add the Decision Explorer extension to your Mendix environment and how to connect to Avola Decision.

  • Explore and implement Decision Services
    Learn how to implement your Avola Decision models in Mendix ensuring smooth data flow and decision execution.

Install and connect

In this section, you will learn how to install the extension and setup connection with Avola Decision.

Install the extension into your project by downloading it from the Mendix Marketplace. After the download you can open the Decision Explorer via the Extensions menu.

Mendix Studio Pro 10.12 or higher is required to install this extension.

image-20240627-090058.png


To connect with Avola Decision, follow these steps:

An Avola Decision API account consisting of a Client ID and Client Secret is required for the next step.

  1. In the Configuration panel, enter your Client ID and Client Secret.

image-20240627-124416.png
  1. Enter the Endpoint for your Avola environment.

The endpoint for your Avola environment can be entered for your Test API and Production API

Test API: https://{tenant}.api.execution.test.avo.la/

Production API: https://{tenant}.api.execution.prod.avo.la/

  1. Select an existing Module from your Mendix application that you want to use for implementation purposes.

  2. Click Connect.

  • On successful authorization the Explorer panel is opened and you can continue to explore and implement Avola Decision.

  • On failed authorization please check and verify that you have correct API credentials and endpoint.

 

Explore and implement Decision Services

In this section, you will learn how to explore and implement Avola Decision in your Mendix app.

In the Explorer you can view details of Decision Services from Avola Decision. Please view the screenshots below.

Implement
In order to implement a decision service in your Mendix application follow these steps:

  1. Click on the highlighted icon next to a specific version in order to create a microflow that generates the required actions.

  1. Confirm and the followings assets will be created:

After confirmation the following assets will be created:

  • Folders

  • Enumerations (optionally, depending on the datatype of the input)
    These are created to make it easier to map all values for input of datatype pair or list.

  • Microflow
    This microflow can be used to call the decision service. It includes all input parameters in the corresponding datatype including.

  1. Call the newly created microflow and enter the required input parameters.

  2. Use the ExecutionResult returned by the microflow in order to retrieve desirable output (Final Conclusion and/or selected Conclusions).