Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

  • Logic Nature: model_evaluation

  • Execution Types:

    • Syntax Check – Defines the input fields of the logic. In case of tabs, they will be rendered on the page, but in case of evaluation, it will be used to receive the parameters passed from other logics.

    • Standard – Calculates and provides the results.

  • Information provided to the logic:

    • Syntax Check:

      • Binding variables:

    • Standard:

      • Binding variables:

        • model (see ModelEvaluationFormulaContext) includes Model Table, inputs from previous steps and outputs from previous calculations.

        • input (Map)

          1. When used for visualizations on a Tabtab, it contains values of all inputs provided by the user in the input fields of the current tab.

          2. When used in evaluation (from other module, via api.model().evaluate()), it contains the parameters values passed to the logic.

          3. When the evaluation is called by the Product Recommendation feature on in Quotes, it will provide the following values:

            • input['categoryName'] - – Specifies for which category should the list of product recommendations should be returned. Those These categories are defined in the advanced property quoteProductRecommendationsConfig.

            • input['products'] - List of product IDs , which are already present in the quote.

            • input['customers'] - List of customer IDs , for which the quote is prepared for.

            • input['productFilter'] - The filter – Filter generated by the Quote Product Picker Filter Logic, so that the Evaluation evaluation can further filter the products by provided and provide only those relevant to the user.

  • Expected logic execution outcome:

    • Syntax Check:

      • Input field definitions placed in the logic context.

    • Standard:

      1. When used for visualizations on a Tab - tab – Results and their formatting are provided via the output of the visible (with DisplayMode set) logic elements. The result value can be of almost any type:

        • Simple : String, BigDecimal, Map, List, …

        • Complex : Chart, ResultMatrix, Controller, …

        • Critical Alert – When used on a Tabtab, it will block the Continue button.

      2. When used in evaluation (from other module, via api.model().evaluate()) - Results are provided via the output of the visible (with DisplayMode set) logic elements.

      3. when When used by the Product Recommendation feature on in Quotes:

        • one One element must return a result of the type List<ItemRecommendation> (see api.newItemRecommendation()).

        • when raised When a Yellowyellow, red, or critical Alertalert is raised, it will be presented to the user on the Quote.