Class: DecisionAgent::Dmn::DecisionTreeParser
- Inherits:
-
Object
- Object
- DecisionAgent::Dmn::DecisionTreeParser
- Defined in:
- lib/decision_agent/dmn/decision_tree.rb
Overview
Parser for DMN decision trees (literal expressions)
Class Method Summary collapse
Class Method Details
.parse(xml_element) ⇒ Object
186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/decision_agent/dmn/decision_tree.rb', line 186 def self.parse(xml_element) # Parse DMN literal expression (decision tree representation) # This is a simplified parser - full DMN tree parsing would be more complex tree_id = xml_element["id"] tree_name = xml_element["name"] || tree_id DecisionTree.new(id: tree_id, name: tree_name) # Parse the tree structure from XML # Note: This is a placeholder for full DMN literal expression parsing # In a complete implementation, this would parse the DMN tree structure end |