Source: factory.service/package.core/ObjServiceDecisionSwitch.py
Service API wrapper for decision switch logic.
Inherits from ObjDecisionSwitch for core decision tree functionality
and ObjApi for API service capabilities.
Runs the decision switch service for a given decision name.
Runs the decision switch service for a given decision name.
Runs the decision switch service for a given decision name.
Generates a Mermaid diagram for the decision switch.
Generates a SQL statement for the decision logic.
Generates and stores the SQL for the decision logic.
Compares the Python simulation with the generated SQL logic.
Generates a Mermaid Sankey diagram from simulation results.
Saves a decision tree to a PMML file.
Loads a decision tree from a PMML file and saves it to the DB.
Load a decision tree from a CSV file into
Export a decision tree to CSV.
Tests the full save/load cycle of a decision tree using PMML.
Creates the necessary database tables from the YAML schema.
Run a decision tree with a single input record.
Run a decision tree on records from a data table.
Generate validation report from simulation results.
Generate performance report for decision tree simulation.
Clean up old simulation results.
Export failed validations to CSV for analysis.
Validate decision tree structure and data integrity.
Compare two simulation runs to identify differences.
Generate Mermaid flowchart diagram of decision tree.
Validate input data quality and completeness.
Compare two decision tree structures and show differences.
Run simulations for multiple decision trees in batch.