Skip to content

Connect policy recipes

Ready-made, tested Connect policy packages: a tenant’s decisions at the clock, one recipe for each hook. Each recipe explains a rule in plain words, who uses it and why, and how the package does it, with its scenarios, which Hour Advantage checks on every build, so each recipe here is one that passes.

Use a recipe as it is, change it, or copy it as the start of your own. Connect policy packages says what each hook is given and may return.

Testing your own

Put a policy package and its scenarios in a folder, as a recipe is laid out, and run:

Terminal window
hourctl pkg test -p my-policies/

Every scenario calls its hook and compares what it decides with what it expects, and a hook no scenario calls fails the run (hourctl pkg test).

The recipes

RecipeWhat it does
A clock back from repairA clock back after days away is checked and has every punch it holds read again overnight; back from a short outage, nothing is done.
A clock’s life: put into service, backA clock put into service has its information read; back after more than a week away, its information is read again. Its punches are never cleared, and its time and people are not the recipe’s to set.
Clocks shared by several staffing agenciesClocks at a client’s sites serve the workers of several agencies; the clock’s site picks the agency whose placement is there, and the work code picks between two at one site.
Enrolling at an agency’s clockWorkers enrolled at a staffing agency’s clock are routed to the agency under their worker number, labelled with the clock’s site, and noted with the clock that enrolled them.
Linking people by their PINPeople enrolled at the clock under their payroll number are linked by it at once, and sent to every clock of the group.
Onboarding through HR firstSomeone enrolled at an ordinary clock has skipped onboarding and is deleted; at a supervisor’s clock, they are kept unlinked until HR links them.
Routing by work codeA worker placed by several staffing agencies enters a work code at the clock, and the route with that code takes the punch.