◷ Reading Time: 2 minutes
DRD
DRD commands allow you model the Decision Requirements Diagram.
DRD node is the main node in the DRD mode. It contains Nodes element that models the relation between other nodes of the graph.
- name
- Description: Name of the DRD model
- Mandatory: Yes
- Type: String
<DRD name="Premium DRD">
<Nodes>
<!-- list of other nodes -->
</Nodes>
</DRD>
Decision
Decision node allows modeling decision logic relations and hierarchy. A decision node can reference any other logic document for execution.
- name
- Description: Name of decision node
- Mandatory: Yes
- Type: String
- uri
- Description: Address of the logic document to be referenced to the decision node
- Mandatory: No
- Type: string (relative address to the logic file)
- type
- Description: Defines the type of the referenced logic document
- Mandatory: No
- Type: string of Tree, NaturalLanguage, Flow or DecisionTable. When left blank DecisionTable is by default.
<DRD name="Premium DRD">
<Nodes>
<Decision name="Premium" />
<Decision name="Determine Rating">
<Transition name="Transition8" to="Auto Premium" relationType="Information" />
</Decision>
<BusinessKnowledge name="Define Potential Theft Rating" uri="PotentialTheftRating.xml">
<Transition name="Transition3" to="Determine Rating" relationType="Knowledge" />
</BusinessKnowledge>
<BusinessKnowledge name="Define Potential Occupant Injury Rating" uri="PotentialOccupantInjuryRating.xml">
<Transition name="Transition4" to="Determine Rating" relationType="Knowledge" />
</BusinessKnowledge>
<KnowledgeSource name="KnowledgeSource1">
<Transition name="Transition5" to="Premium" relationType="Authority" />
</KnowledgeSource>
<Decision name="Auto Premium" uri="Auto-no-style.xml">
<Transition name="Transition7" to="Premium" relationType="Information" />
</Decision>
<Decision name="Base Premium" uri="Base.xml">
<Transition name="Transition6" to="Premium" relationType="Information" />
</Decision>
<InputData name="car" isOutput="True">
<Transition name="Transition9" to="Determine Rating" relationType="Information" />
<Transition name="Transition11" to="Base Premium" relationType="Information" />
<Transition name="Transition14" to="Decision5" relationType="Information" />
</InputData>
<InputData name="probList">
<Transition name="Transition12" to="Determine Rating" relationType="Information" />
</InputData>
<Decision name="Decision5" uri="Auto-Tree.xml" type="Tree">
<Transition name="Transition15" to="Auto Premium" relationType="Information" />
</Decision>
</Nodes>
</DRD>
BusinessKnowledge
BusinessKnowledge node allows modeling Business Knowledge logic relations and hierarchy. Similar to decision node it node can reference any other logic document for execution.
- name
- Description: Name of BusinessKnowledge node
- Mandatory: Yes
- Type: String
- uri
- Description: Address of the logic document to be referenced to the decision node
- Mandatory: No
- Type: string (relative address to the logic file)
- type
- Description: Defines the type of the referenced logic document
- Mandatory: No
- Type: string of Tree, NaturalLanguage, Flow or DecisionTable. When left blank DecisionTable is by default.
<DRD name="Premium DRD">
<Nodes>
<Decision name="Premium" />
<Decision name="Determine Rating">
<Transition name="Transition8" to="Auto Premium" relationType="Information" />
</Decision>
<BusinessKnowledge name="Define Potential Theft Rating" uri="PotentialTheftRating.xml">
<Transition name="Transition3" to="Determine Rating" relationType="Knowledge" />
</BusinessKnowledge>
<BusinessKnowledge name="Define Potential Occupant Injury Rating" uri="PotentialOccupantInjuryRating.xml" >
<Transition name="Transition4" to="Determine Rating" relationType="Knowledge" />
</BusinessKnowledge>
<KnowledgeSource name="KnowledgeSource1">
<Transition name="Transition5" to="Premium" relationType="Authority" />
</KnowledgeSource>
<Decision name="Auto Premium" uri="Auto-no-style.xml">
<Transition name="Transition7" to="Premium" relationType="Information" />
</Decision>
<Decision name="Base Premium" uri="Base.xml">
<Transition name="Transition6" to="Premium" relationType="Information" />
</Decision>
<InputData name="car" isOutput="True">
<Transition name="Transition9" to="Determine Rating" relationType="Information" />
<Transition name="Transition11" to="Base Premium" relationType="Information" />
<Transition name="Transition14" to="Decision5" relationType="Information" />
</InputData>
<InputData name="probList">
<Transition name="Transition12" to="Determine Rating" relationType="Information" />
</InputData>
<Decision name="Decision5" uri="Auto-Tree.xml" type="Tree">
<Transition name="Transition15" to="Auto Premium" relationType="Information" />
</Decision>
</Nodes>
</DRD>
InputData
InputData node allows modeling the requirement for input data all through out the DRD.
- name
- Description: Name of the InputData node. This simply can reference to a Parameter name.
- Mandatory: Yes
- Type: String
- uri
- Description: Address of the logic document to be referenced to the decision node
- Mandatory: No
- Type: string (relative address to the logic file)
- type
- Description: Defines the type of the referenced logic document
- Mandatory: No
- Type: string of Tree, NaturalLanguage, Flow or DecisionTable. When left blank DecisionTable is by default.
<DRD name="Premium DRD">
<Nodes>
<Decision name="Premium" />
<Decision name="Determine Rating">
<Transition name="Transition8" to="Auto Premium" relationType="Information" />
</Decision>
<BusinessKnowledge name="Define Potential Theft Rating" uri="PotentialTheftRating.xml">
<Transition name="Transition3" to="Determine Rating" relationType="Knowledge" />
</BusinessKnowledge>
<BusinessKnowledge name="Define Potential Occupant Injury Rating" uri="PotentialOccupantInjuryRating.xml" >
<Transition name="Transition4" to="Determine Rating" relationType="Knowledge" />
</BusinessKnowledge>
<KnowledgeSource name="KnowledgeSource1">
<Transition name="Transition5" to="Premium" relationType="Authority" />
</KnowledgeSource>
<Decision name="Auto Premium" uri="Auto-no-style.xml">
<Transition name="Transition7" to="Premium" relationType="Information" />
</Decision>
<Decision name="Base Premium" uri="Base.xml">
<Transition name="Transition6" to="Premium" relationType="Information" />
</Decision>
<InputData name="car" isOutput="True">
<Transition name="Transition9" to="Determine Rating" relationType="Information" />
<Transition name="Transition11" to="Base Premium" relationType="Information" />
<Transition name="Transition14" to="Decision5" relationType="Information" />
</InputData>
<InputData name="probList">
<Transition name="Transition12" to="Determine Rating" relationType="Information" />
</InputData>
<Decision name="Decision5" uri="Auto-Tree.xml" type="Tree">
<Transition name="Transition15" to="Auto Premium" relationType="Information" />
</Decision>
</Nodes>
</DRD>
Transition
Transition allows connecting different nodes with different type of dependencies:
- Information
- Knowledge
- Authority
Depends on type of the node origin and destination, different type of transition is required.
- name
- Description: Name of the dependency (transition)
- Mandatory: Yes
- Type: String
- type
- Description: Type of dependencies
- Mandatory: Yes
- Type: Information, Knowledge or Authority
<DRD name="Premium DRD">
<Nodes>
<Decision name="Premium" />
<Decision name="Determine Rating">
<Transition name="Transition8" to="Auto Premium" relationType="Information" />
</Decision>
<BusinessKnowledge name="Define Potential Theft Rating" uri="PotentialTheftRating.xml">
<Transition name="Transition3" to="Determine Rating" relationType="Knowledge" />
</BusinessKnowledge>
<BusinessKnowledge name="Define Potential Occupant Injury Rating" uri="PotentialOccupantInjuryRating.xml" >
<Transition name="Transition4" to="Determine Rating" relationType="Knowledge" />
</BusinessKnowledge>
<KnowledgeSource name="KnowledgeSource1">
<Transition name="Transition5" to="Premium" relationType="Authority" />
</KnowledgeSource>
<Decision name="Auto Premium" uri="Auto-no-style.xml">
<Transition name="Transition7" to="Premium" relationType="Information" />
</Decision>
<Decision name="Base Premium" uri="Base.xml">
<Transition name="Transition6" to="Premium" relationType="Information" />
</Decision>
<InputData name="car" isOutput="True">
<Transition name="Transition9" to="Determine Rating" relationType="Information" />
<Transition name="Transition11" to="Base Premium" relationType="Information" />
<Transition name="Transition14" to="Decision5" relationType="Information" />
</InputData>
<InputData name="probList">
<Transition name="Transition12" to="Determine Rating" relationType="Information" />
</InputData>
<Decision name="Decision5" uri="Auto-Tree.xml" type="Tree">
<Transition name="Transition15" to="Auto Premium" relationType="Information" />
</Decision>
</Nodes>
</DRD>