Model Evaluation Logic

Model Evaluation logic is used in the following use cases:

  1. To provide inputs and results to be presented to the user on a tab when the user is browsing the model and looking at various tabs (of the type simple or dashboard), or looking at details of a tree node (on the tab of the type filtertree).

  2. When a logic from another module (e.g. Quotes) needs to get data from a model, it can call the model’s evaluation (and pass parameters to it) which will call the evaluation logic to provide the information from the model.

  3. When Product Recommendation is configured for Quotes, it can use the Model’s Evaluation (and thus the evaluation logic) to retrieve the list of recommended products.

The evaluation logic characteristics:

  • It is evaluated synchronously – e.g. immediately when the user interacts with the UI.

  • Its results are never persisted.

  • Its inputs are saved with the model (if used while the user is browsing the model).

  • It can do anything read only related to the Model Object where the logic is executed; including accessing previous steps inputs, previous calculations outputs, querying Model Tables, reading attachments, etc., via the model binding.

Configuration

The evaluation logic is referenced in the Model Class definition, in the formulaName property of:

  • a tab (only for the types dashboard, simple and filtertree);

  • an evaluation.

Logic API

To ensure that this synchronous experience is always smooth for the user, it is a good practice to set the elementTimeout property of all the logic elements to 0.

Found an issue in documentation? Write to us.

Â