Lifecycle reactions
A reaction runs actions once when something happens to a person:
- They move to another lifecycle state.
- Their details change.
- They are created or removed.
- They join or leave a group.
- A resource is assigned to them or removed.
You choose what it runs on, optionally an expression that must also be true, and one to ten actions, which run in order. For example, when someone moves to Terminated, a reaction can hand their open work to their manager and then send their manager a checklist.
Reactions run once for each change. What people hold while they are in a state is a policy's job, not a reaction's: see People lifecycle.
Reactions are under People lifecycle > Automate > Reactions. A reaction you add from a state's page is listed there too, and also on that state's Entering, Leaving or Scheduled tab. A new reaction is turned off until you turn it on, except one made from a date, which you can turn on as you create it.
Run a reaction on a lifecycle transition
A lifecycle transition is a move from one state to another, such as Active to Leaving. To run a reaction on one:
- Open the reaction. Under When this happens, set Entity to Identity.
- Turn on Lifecycle transition. Events becomes Modify only: a person is created without a state, and their first state arrives as a change.
- Under To, tick the states it runs on entering.
- Under From, choose A state they were already in, or Only these states and tick them.
- Optionally, add an Expression (advanced) that must also be true.
- Select Save reaction, and turn on Enabled when it reads right.
The sentence under the actions reads the reaction back, for example "Runs when someone's lifecycle state changes to Leaving from a state they were already in."
A state they were already in doesn't include Unknown. A person's first state, which a first import or a first sync sets, is a move from Unknown, so with this choice the reaction doesn't run then. That keeps a leaver reaction from running for everyone an import brings in already Terminated. The same goes for someone who sat in Unknown because their HR data matched no rule. To run on moves from Unknown too, choose Only these states and tick Unknown, which is marked "also run when the first import sets the state".
The quickest way to make one is Add a step on a state's Entering or Leaving tab, which fills in the transition for you. See People lifecycle.
Show a reaction on the lifecycle pages
On the lifecycle pages, under When this happens, sets where the reaction is listed under People lifecycle. It never changes when the reaction runs:
| Choice | Where it is listed |
|---|---|
| Not shown | Only in the reactions list. |
| On entering a state | The chosen state's Entering tab. Needs a lifecycle transition. |
| While someone is in a state | The chosen state's Holds tab, under While in this state. |
| On a change while someone is in a state | The same place, marked "On a change of details". |
| On a date | The chosen state's Scheduled tab. Offered only for a reaction made on a Scheduled tab. |
Then choose the State. A reaction shown on entering a state must run on entering it. If you change its transition so that it no longer does, Owlie asks you to choose where it is shown again before you save. Steps you add from a state's page are placed for you.
What a reaction can do
Choose each action under Then do these actions with Action type:
| Action | What it does |
|---|---|
| Notify | Sends a notice with your Subject and Message to the person, their manager, their previous manager, a group, or admins and owners. |
| Hand over their open work | Hands the approval steps and tickets still waiting on them to someone who can act, and moves each request on. |
| Open a task for what they own | Opens a task, for their manager or a group, listing every resource they own so a new owner is picked for each. |
| End their delegation | Clears the delegate they named and its dates, so nobody acts for them any more. |
| Add to group | Makes them a direct member of the group. |
| Remove from group | Ends their direct membership. Membership they have through another group stays. |
| Start account claim | Emails them an account claim, to set a password and sign in for the first time. |
| Send a password reset | Emails them a password reset for their primary password or one account. |
| Run function | Runs a published event-action function. |
No action sets a password for someone: only the person chooses theirs.
Their manager is the nearest manager above the person who is still active: a manager who has left is passed over. When there is nobody, the notice or task is skipped and the reaction's history says why. Their previous manager is the manager a change of manager moved them away from. It is offered only for a reaction that runs on Modify, and it is skipped when they had no manager before or when that person is their manager now, so nobody hears twice.
A notice's subject and message can fill in the person's text attributes: write
{{identity.display_name}}, or another text attribute such as {{identity.department}}. Each line of
the message is its own paragraph. Notices arrive in Owlie, by email and in Slack, as your
organization's notification policy allows. People can't turn
them off in their own preferences. A notice to a group reaches every member in Owlie. By email it goes
to up to 20 randomly selected members. In Slack it goes to the group's channel when it has one, otherwise
to the same sample as direct messages. If everyone must receive the email, choose a smaller group.
Admins and owners means everyone with the Admin or Owner role, directly or through a group, and
Owners everyone with the Owner role.
A subject can be up to 200 characters and a message up to 4,096. If a filled-in value makes either one longer, Owlie shortens it with an ellipsis. An empty subject uses the reaction's name.
Hand over their open work moves approval steps to the person's manager, or to the manager fallback when there is nobody above them. With the default fallback, each approval goes to the owner of the resource it is for, unless that owner is the person the request is for. A ticket they were fulfilling goes to its resource's owner first, when the owner can take it, and otherwise the same way as the approvals. Nothing moves while the person can still do the work: someone active who isn't terminated keeps it.
Steps that change people or work need the permission they use. Adding a step needs this permission:
| Step | Permission |
|---|---|
| Add to group or Remove from group | Permission to update groups |
| End their delegation | Permission to update identities |
| Hand over their open work | Permission to manage requests |
| Open a task for what they own | Permission to update resources |
Owlie asks again, for every such step the reaction has, when someone changes those steps, the trigger or the expression, or turns the reaction on or off. Renaming it, changing its description or where it is shown, or editing a Notify or Run function step asks nothing.
Built-in reactions
Owlie sets up three reactions for every organization, all turned on:
| Reaction | What it does |
|---|---|
| When someone is terminated: hand over responsibilities | Hands over their open work, ends their delegation, and opens a task for their manager to pick new owners for what they owned. |
| When someone is terminated: notify their manager | Sends their manager a handover checklist. |
| When someone's manager changes: notify the old and new manager | Tells the new manager and the previous one, while the person is Active. |
A built-in reaction shows Built-in in the list. You can change it or turn it off, but not delete it. The two termination reactions run on a move to Terminated from any state except Unknown, so a first import doesn't run them. The manager reaction can also be turned on or off from People lifecycle > Automate > Changes.
Run a reaction on a date
You can run a reaction a number of days before a date attribute such as Start date, on the date, or a number of days after it. For example, send a welcome message the day before someone starts.
- Open People lifecycle > Automate > Reactions and select New reaction.
- Under Start from, choose From a date. This choice appears when you can manage reactions and derived states.
- Choose the Date attribute. The list holds the directory's date attributes, such as Hire date, Start date, and End date, and any custom date attributes you added.
- Under When, choose A number of days before the date, On the date, or A number of days after the date. For the first and last, enter the Number of days.
- For On the date and A number of days after the date, set Catch up for up to (days). It defaults to 30 and can be 1 to 365. See Catching up.
- Choose the first action. A reaction needs at least one action before it can be saved, and you can add more later.
- Optionally, enter a Name. Without one, Owlie names the reaction from your choice, for example "When Start date is 3 days away".
- Leave Turn on now on to start the reaction as it is created. See Turn it on.
- Select Create reaction. Owlie opens the new reaction.
The dialog shows what the choice will do before you create anything.
What Owlie creates
Two ordinary objects, both of which you can open and edit, and a rule that keeps the reaction from running twice for the same date:
- A derived attribute that is true while the date relation holds, listed under Directory Settings > Derived attributes with a name such as "Start date is within 3 days".
- A reaction on Identity > Modify, turned on unless you turned off Turn on now. Its condition matches when that attribute becomes true, or when the date changes while it is true. So the reaction runs when the date relation starts to hold or the date moves, and not on any other change to the identity.
- On the reaction, a note that it runs at most once for each value of the date attribute. See Once for each date.
If something can't be created, for example because a reaction with that name already exists, Owlie creates none of it. If you create a second reaction for the same date attribute and relation, give it its own Name. With Turn on now on, Owlie creates a numbered copy of the derived attribute for it, such as "Start date is within 3 days (2)". That way the new reaction catches up on people whose date already falls in its window. With Turn on now off, it shares the first one's derived attribute.
When it runs
The reaction runs once for each person, at the start of a day in that person's own time zone:
| Choice | Runs at the start of |
|---|---|
| A number of days before the date | The day that many days before the date. |
| On the date | The date. |
| A number of days after the date | The day that many days after the date. |
Owlie uses the identity's Timezone attribute. If a person has none, it uses the organization's time zone, or UTC if the organization has not set one. Two people with the same start date therefore run at different moments if they are in different zones.
The reaction runs within about five minutes after that midnight. You can't choose an hour such as 08:00.
Catching up
A date that has already passed would otherwise count for everyone at once when you import people, run a first sync, fill in a date, or create the reaction. Owlie instead gives On the date and A number of days after the date a catch-up window. If Owlie first sees a date up to that many days after the day the reaction should have run, it runs the reaction once, late. A date older than that never runs it, so creating a reaction on On the date doesn't run it for everyone whose date has long passed.
For A number of days before the date, a person who is already within that many days of their date when the reaction is created runs it once.
Catching up on people whose date already falls in the window when you create the reaction needs Turn on now. See Turn it on.
If Owlie can't evaluate dates for longer than the catch-up window, for example during an outage, the reaction doesn't run for dates whose window passed in the meantime.
Once for each date
The reaction runs at most once for each date. If you change someone's date, it runs for the new date, also when both dates fall in the window. If you change it back to a date the reaction already ran for, it doesn't run again. If a run fails, Owlie doesn't run it again for that date by itself. Retry the run from the reaction's history while both the original change and the failure are no more than 60 days old. See record retention.
Owlie keeps a record of each date it ran for until a year and a day after the date, plus the number of days you chose, and then deletes it. That covers the widest catch-up window, so widening the window later doesn't run the reaction twice for anyone. The record holds a fingerprint of the date, not the date itself. Deleting the reaction deletes its records.
Turn it on
Turn on now is on by default. Owlie creates the reaction turned on, and it runs once, right away, for everyone whose date already falls in the window, then for each date as it comes.
If you turn off Turn on now, the reaction is created disabled. When you are ready, open it, turn on Enabled, and select Save reaction. A disabled reaction never catches up on what happened while it was off: people whose date already falls in the window when you turn it on don't run, unless their date changes later. People whose window opens after you turn it on run as usual.
Limits
- Only date attributes are offered. Date and time attributes are not.
- The relation counts whole days.