about summary refs log tree commit diff
path: root/universe/ac_types/notes_with_jason.txt
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-29T14·29+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-29T14·29+0000
commitfb9380ba268b3cd27372acadb87b14cc96163374 (patch)
treef65d7fc8d8726499165a0949af39afd1abc8118c /universe/ac_types/notes_with_jason.txt
parent15110e6de9f85537c7847267caa35fa068aea001 (diff)
parent8ad51b24dd8719840aac47134835ea25cfe1b0b8 (diff)
Add 'universe/' from commit '8ad51b24dd8719840aac47134835ea25cfe1b0b8'
git-subtree-dir: universe
git-subtree-mainline: 15110e6de9f85537c7847267caa35fa068aea001
git-subtree-split: 8ad51b24dd8719840aac47134835ea25cfe1b0b8
Diffstat (limited to 'universe/ac_types/notes_with_jason.txt')
-rw-r--r--universe/ac_types/notes_with_jason.txt60
1 files changed, 60 insertions, 0 deletions
diff --git a/universe/ac_types/notes_with_jason.txt b/universe/ac_types/notes_with_jason.txt
new file mode 100644
index 000000000000..5c2972ee579f
--- /dev/null
+++ b/universe/ac_types/notes_with_jason.txt
@@ -0,0 +1,60 @@
+# TODO: Handle Cartesian product for each "or" in row["Data Source/Value"]
+
+# Notes from Jason:
+# Type
+# - Require ID
+#   - Parent Routing FRD
+#   - Consult Input
+# - Raw
+#   - everything else...
+#
+# Hard-Code: CONSTANT...constant_value
+#
+# Atlas.CustomerID == SIGNAL
+# all else (!Hard-Code && !Atlas.CustomerID): Parent FRD
+
+
+consult_settings {
+  # Consult Parameter
+  taxonomy_id: # (row['Name'] == 'Taxonomy ID') row['Data Source/Value']
+  view_id: # (row['Name'] == 'View ID') row['Data Source/Value']
+  neo_organization: # (row['Name'] == 'ORGANIZATION') row['Data Source/Value']
+  max_wait_time_for_consult_secs: # (row['Name'] == 'Timeout') hours_to_seconds(as_hours(row['Data Source/Value']))
+  reroute_on_customer_interaction: # (row['Name'] == 'Re-Route if Customer Responds') as_yes_no(row['Data Source/Value'])
+
+  # Parent Routing FRD
+  rows
+  |> filter(row['Type'] == 'Parent Routing FRD')
+  |> map((row) => parent_lookup_frds {
+       id: ??? # as_id(row['Name'])
+       value: ??? row['Data Source/Value']
+     })
+
+  # Consult Routing FRD
+  rows
+  |> filter(row['Type'] == 'Consult Routing FRD')
+  |> map((row) => consult_routing_frds {
+       id: row['Name']
+       value: row['Data Source/Value']
+     })
+
+  # Return Routing FRD
+  rows
+  |> filter(row['Type'] == 'Return Routing FRD')
+  |> map((row) => parent_return_routing_frds {
+       id: ???
+       value: ???
+     })
+
+  # Input (Note: There seem to be more than one variant of these)
+  rows
+  |> filter(row['Type'] == 'Input')
+  |> map((row) => inputs {
+       constant_value: ???
+       consult_frd_id: ???
+       is_optional: ???
+       parent_frd_id: ???
+       signal_type: ???
+       type: ???
+     })
+}