Rules Engine

Updated March 7, 2024

Rules Engine

Overview

Certain features of PrevailHQ require the selection of multiple people from your organization. Rather than forcing you to individually pick each person that should be added to a feature, we have a powerful rules engine that allows you to select people based on their properties.

Compliance Checklists, Screening Schedules, and Announcements are all set up by adding Rules. For example, if a person matches a rule in a Compliance Checklist, then they are assigned that compliance checklist.

Walkthrough

When working with a screening schedule, compliance checklist, or announcement, the first thing to consider when selecting who should be assigned is to consider the type of person. You can set your rules to only apply to Employees, Contractors, Students, or any combination of those three.

Click "Add Rule" to select a property (a specific attribute of a person's profile). For example, if they have the app installed, if they have a reservation, group membership, shift, vaccination status, etc. Once you have selected a property and set its match value, then click "Insert."

blobid1.png

For Example…

  • Property: App Installed, Matches: Yes
  • + Users who have the app installed will get notifications based on this schedule; users who do not have the app installed will not be notified on this schedule.

  • Property: Last Name, Matches: "Person|Someone"
  • + All users with the last name Person or Someone will be notified based on this schedule; users who do not have those last names will not be notified by this schedule.

  • Property: First Name, Matches: "Jane" AND Property: Last Name, Matches: "Smith"
  • + This means that only Jane Smith will be notified of this schedule, and no one else.

Please Note: To select multiple "Matches" under a rule, press SHIFT and to enter the | symbol. This will create an OR rule. Here is what that would look like with the above example:

blobid2-2.pngblobid3-2.png

Before vs. After saving your schedule

Alternatively, if you'd like an AND rule, you will need to create separate matches, as the third example above shows. This example will be marked as:

blobid4-2.png

Supported Attributes

App InstalledUsers who have the app installed will be selected; users who do not have the app installed will not be selected.
BadgeUsers with valid or invalid badges will be selected.
Badge IdUsers with matched badge IDs will be selected.
Cell PhoneUsers with matched cell phone numbers will be selected.
EmailUsers with matched emails will be selected.
Employee IdUsers with matched Employee IDs will be selected.
First NameUsers with matched First Names will be selected.
Grade (schools only)Users with matched Grades will be selected.
GroupsUsers with matched Groups will be selected.
Has ReservationUsers who have a valid reservation will be selected. Reservations have to be enabled under Organization Settings.
Home CityUsers with matched Home City will be selected. The home city can be set by editing the user's personal details.
Home Room (schools only)Students with matched main classrooms(Home Rooms) will be selected. Student Home Room can be set by editing the students' personal details.
Home StateUsers with matched Home State will be selected. The home state can be set by editing the user's personal details.
Home ZipUsers with matched Home Zip will be selected. The home zip can be set by editing the user's personal details.
Last NameUsers with matched Last Names will be selected.
LocalityUsers with matched Locality will be selected. Locality can be set by editing the user's personal details.
LocationsUsers with matched Locations will be selected.
Office PhoneUsers with matched Office Phone numbers will be selected.
On-Site AtUsers with matched locations and who are scheduled to come on-site via the [In/Out boar](InOut (Team Status Board)_4457077075220.md)d will be selected.
Primary LocationUsers with matched Primary Locations will be selected. Primary Location can be set by editing the user's personal details.
RoleUsers with matched roles will be selected. The role can be set up by editing the user's personal details.
ScreeningUsers with Passed, Failed, or Expired screening statuses will be selected.
ShiftUsers with matched shifts will be selected. Shifts can be set by editing the user's personal details.
Student Id (schools only)Students with matched Student IDs will be selected. Student ID can be set by editing the students' personal details.
Teacher (schools only)Users with matched Teachers will be selected. Teachers can be set by editing the students' personal details.
TitleUsers with matched titles will be selected. Titles can be set by editing the user's personal details.
Vaccination StatusUsers with matched vaccination statuses will be selected. Click here to learn more about vaccines.
Work CapacityUsers with matched work capacity will be selected. Users' work capacity can be modified by Case Managers or anyone with the Manage Employee's permission.