Source: factory.core/extend.edit/ObjDecisionSwitchEdit.py
Extends ObjDecisionSwitch to provide YAML export,
simulation, and CRUD functionality for decision trees.
| Method | Signature | Description |
|---|---|---|
| load | load(decision_name: str, package: Optional[str] = None) -> JsonDict |
Load complete decision tree configuration |
| export_to_file | export_to_file(decision_name: str, filename: Optional[str] = None, package: Optional[str] = None) -> bool |
Export decision tree configuration to YAML. |
| create_simulation_data_table | create_simulation_data_table(decision_name: str, table_name: str) -> None |
Creates a simulation input data table for a |
| simulate | simulate(decision_name: str, input_guid: str = '') -> None |
Runs the decision switch service for a given |
| verify_outcomes | verify_outcomes(decision_name: str, test_set: JsonDict) -> None |
Verifies simulation outcomes against a |
| get_sim_key | get_sim_key(input_table: str = '') -> str |
Generate simulation key from input table. |
Run simulation for a decision tree using data
Create simulation input table with required
Display information about a decision tree.
List all decision trees in the current package.
Export decision tree to formatted YAML file.
List all versions of a decision tree.