Conditional-Based Model Execution
1
Table of Contents
1. Overview......................................................................................................................................... 3
2. Current Functionality.................................................................................................................3
3. Proposed Enhancements......................................................................................................... 3
4. Detailed Scenario....................................................................................................................... 4
5. UI Changes.................................................................................................................................... 4
Model Field Configuration Screen:..............................................................................................................4
Mockup Reference:........................................................................................................................................ 4
6. View Mode Screen...................................................................................................................... 6
7. Impacted Areas............................................................................................................................7
8. System Components Affected............................................................................................... 7
9. Acceptance Criteria....................................................................................................................8
BREx 2
1. Overview
This document outlines the functional requirements for introducing
Conditional-Based Model Execution within BREx. The feature aims to
improve performance by conditionally executing ML models based on
configurable rules, ensuring that only relevant models are invoked during
policy execution.
2. Current Functionality
Currently, in BREx:
● When multiple models are used within a policy or configuration, the
system pre-calculates dependencies.
● As a result, all models are executed, regardless of whether their
outputs are required based on the context.
● This behavior leads to unnecessary execution time and performance
overhead.
3. Proposed Enhancements
● Enable conditional execution of models.
● Conditions can be configured based on rule triggers, loan details,
application status, customer type, etc.
● A model will only execute if the defined condition is satisfied,
reducing system load and improving performance.
BREx 3
4. Detailed Scenario
Use Case:
● The system should execute the model only if the application is for a
Personal Loan and the requested loan amount is greater than
₹2,00,000.
Examples:
Loan Type Loan Amount Model Execution
Personal Loan ₹2.5 Lakhs ✅ Yes
Personal Loan ₹1.5 Lakhs ❌ No
Home Loan ₹10 Lakhs ❌ No
5. UI Changes
Model Field Configuration Screen:
● Introduce a new optional panel labeled "Condition".
● Add a button: “Add Condition”.
● On click, a condition builder UI (similar to existing criteria panel) will
appear.
● The user can define one or more logical conditions.
BREx 4
Mockup Reference:
All system fields and IFF and masters will be available in that dropdown
BREx 5
6. View Mode Screen
BREx 6
7. Impacted Areas
The following areas must incorporate this change to maintain consistency
and traceability:
● ✅ Export / Import
● ✅ Policy Download
● ✅ User Session Activity Logs
● ✅ Recent Field Activity
● ✅ Search Dependency Panel
● ✅ Open Field Configuration
● ✅ History
● ✅ History Version Comparison
● ✅ Compare with Production
● ✅ Promotion
● ✅ Execution Logs / Debug Logs
Note: Development team should identify and update any additional
impacted areas.
8. System Components Affected
BRE, BREx and UI
BREx 7
9. Acceptance Criteria
ID Scenario Expected Behavior
AC1 Model has no condition Model executes by default
AC2 Condition is configured & evaluates Model is executed
TRUE
AC3 Condition is configured & evaluates Model is skipped
FALSE
AC4 Export/Import Condition should persist
AC5 Promotion Condition should be promoted correctly
AC6 Compare & History Condition should reflect in versioning and
comparison
BREx 8