Constant dmntk_examples::EX_0024

source ·
pub const EX_0024: &str = r#"
  ┌────────────────────────────────────────────────┐
  │ Order properties                               │
  ├───┬───────────┬───────╥──────────┬──────────╥──┴────────┐
  │ U │ Customer  │ Order ║ Discount │ Priority ║ Reference │
  │   ├───────────┼───────╫──────────┼──────────╫───────────┤
  │   │"Business",│ <10,  ║   0.10,  │"Normal", ║           │
  │   │"Private"  │ >=10  ║   0.15,  │ "High",  ║           │
  │   │           │       ║   0.05   │ "Low"    ║           │
  ╞═══╪═══════════╪═══════╬══════════╪══════════╬═══════════╡
  │ 1 │"Business" │ <10   ║   0.10   │ "Normal" ║ Ref 4     │
  ├───┼───────────┼───────╫──────────┼──────────╫───────────┤
  │ 2 │"Business" │ >=10  ║   0.15   │  "High"  ║ Ref 3     │
  ├───┼───────────┼───────╫──────────┼──────────╫───────────┤
  │ 3 │"Private"  │   -   ║   0.05   │  "Low"   ║ Ref 2     │
  └───┴───────────┴───────╨──────────┴──────────╨───────────┘
% { Customer: "Business",   Order:  -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
% { Customer: "Business",   Order:   9.00 }, { "Discount": 0.10, "Priority": "Normal" }
% { Customer: "Business",   Order:  10.00 }, { "Discount": 0.15, "Priority": "High" }
% { Customer: "Business",   Order: 120.00 }, { "Discount": 0.15, "Priority": "High" }
% { Customer: "Private",    Order:  -2.34 }, { "Discount": 0.05, "Priority": "Low" }
% { Customer: "Private",    Order:  10.00 }, { "Discount": 0.05, "Priority": "Low" }
% { Customer: "Private",    Order: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
% { Customer: "Government", Order: 300.01 }, null
"#;
Expand description

Horizontal decision table,

          ORIENTATION: horizontal
INFORMATION ITEM NAME: yes
         OUTPUT-LABEL: no
  INPUT-OUTPUT-VALUES: yes
               OUTPUT: multiple
          ANNOTATIONS: yes