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.
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.
In the Configuration panel, enter your Client ID and Client Secret.
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/
Select an existing Module from your Mendix application that you want to use for implementation purposes.
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
Before you can explore and implement Decision Services you need to have an active connection. Please view the article Install and connect.
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.
In order to view the decision model you are required to enter credentials for an Avola Decision user account.
Implement
In order to implement a decision service in your Mendix application follow these steps:
Click on the highlighted icon next to a specific version in order to create a microflow that generates the required actions.
Confirm and the followings assets will be created:
The microflow will be created in the Module that is selected in the Configuration panel.
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.
Call the newly created microflow and enter the required input parameters.
Use the ExecutionResult returned by the microflow in order to retrieve desirable output (Final Conclusion and/or selected Conclusions).