Team Data Services

Flux departments

A project is in development to resolve the state of a department given a set of rules. A rule is defined for a department with a certain state e.g. open. For example, between 09:00am and 05:30pm this department is in state open. Rules can be more granular to account for specific days, dates and sources. A department has a default state as a fallback when there are no rules applied.

Features currently working include:

  • Definition of departments.
    • departments may have parents where rules from the parent will have lower priority in the state resolution.
  • Definition of states.
  • Definition of rules that a department must abide to be in state (e.g. start time, end times etc.).
    • rules are ordered. During state resolution rules are filtered based on the requirements input, e.g. timestamps. Of the states that remain the rule with the highest order is selected and therefore the state associated with that rule.
    • During state resolution if there are no rules after performing the filters a departments default state is used.
  • State resolution at a given timestamp, e.g. give the state of the department on 01/01/2023 at 3pm.

Upcoming features.

  • State resolution given a set of timestamps, e.g. throughout a day.
  • Global rules that all departments must abide. When defined these override all rules defined by a single department during state resolution. e.g. when ALL departments must be closed immediately.
  • An ‘override state’ on a department - e.g. when a single department must be closed immediately.
    • settings will be provided to configure on department to give ability to push the override state to ascendants, descendants.