Percent
This sub chapter contains a JSON CPR with a Percent decision node. Of particular note in decision nodes of this type is the absence of the "Others" branch as the final node of the decision tree. Percent decision nodes must contain branches for all percentage values. "Others" branches are not allowed.
{
"node": {
"type": "lata",
"branches": [
{
"values": [
"888"
],
"node": {
"type": "action",
"values": [
{
"action_type": "set_carrier",
"action_value": "0539"
},
{
"action_type": "set_network_management_class",
"action_value": "14"
}
]
}
},
{
"values": [
"820",
"822",
"832"
],
"node": {
"type": "action",
"values": [
{
"action_type": "set_carrier",
"action_value": "0222"
},
{
"action_type": "set_network_management_class",
"action_value": "14"
}
]
}
},
{
"values": [
"others"
],
"node": {
"type": "percent",
"branches": [
{
"values": [
"80"
],
"node": {
"type": "action",
"values": [
{
"action_type": "set_carrier",
"action_value": "0444"
},
{
"action_type": "set_network_management_class",
"action_value": "14"
}
]
}
},
{
"values": [
"20"
],
"node": {
"type": "action",
"values": [
{
"action_type": "set_carrier",
"action_value": "0288"
},
{
"action_type": "set_network_management_class",
"action_value": "14"
}
]
}
}
]
}
}
]
}
}