roger2113 Posted November 3, 2021 Report Posted November 3, 2021 Hi all! The question is regarding temporal rules priority for different cycle types. For example we have configured 2 temporal rules for account with weekly and yearly cycle types. Which rule will be taken as a priority in case of time intersection? As far as I tested yearly rule takes a priority, but I didn't find any confirmation in documentation so I don't want to make decisions yet🙂. Also it will be good to hear about priority between other cycle types
Greg Posted November 3, 2021 Report Posted November 3, 2021 Hi Roger, This really is how you design the call flow that will consume the temporal rule.. The first match that is found is used and the call flow follows down that tree.
roger2113 Posted November 3, 2021 Author Report Posted November 3, 2021 (edited) Greg, thank you for your answer! In that case also an upcoming question - can we specify the order in which Kazoo will iterate callflow temporal rules? Or the order is just being kept as in json create/update request model? Also have a question regarding temporal rule with date cycle. Quote start_date The date that any recurrence should be calculated as starting on When cycle is date, the rule only considers start_date and matches it against the current day. As I understood we need to pass Gregorian timestamp of the required date in 'start_date' property. 1. Will the properties time_window_start and time_window_stop be applied to temporal rule with date cycle? 2. How to specify the end date? Or we need to create temporal rule for each date required? Edited November 3, 2021 by roger2113 (see edit history)
Greg Posted November 11, 2021 Report Posted November 11, 2021 Hi Roger, Sorry didn't see your response. Matches occur in my understanding in the order in which they are in the JSON for the call flow. If using Monster UI then from left to right as you add them. 1. I am not sure I understand your question, here? 2. You should create one for each date, for instance each Holiday, then create Temporal Rule Sets (https://docs.2600hz.com/supported/applications/crossbar/doc/temporal_rules_sets/) to group them together as one object. This allows you to have a Holiday List you can add to. To possibly answer question 1 here are a couple examples that might help. Christmas Day { "data": { "time_window_start": 0, "time_window_stop": 86400, "days": [ 25 ], "name": "Christmas", "cycle": "yearly", "month": 12, "ordinal": "every", "interval": 1, "start_date": 62586115200, "id": "1e7ced7206b94b575a267db4138ace7a" } } Thanksgiving { "data": { "time_window_start": 0, "time_window_stop": 86400, "wdays": [ "thursday" ], "name": "Thanksgiving", "cycle": "yearly", "month": 11, "ordinal": "fourth", "interval": 1, "start_date": 62586115200, "id": "e1037a00738d9ebe6422c761456991e9" } }
Recommended Posts