Skip to content

Automations

Run automations for the tenant

Switch on the cron jobs that run automations, give people the permission for tenant automations, choose who an automation runs as, and know every limit that keeps automations from running wild.

For
Admins
Time
8 min
You need
The permission automation.manage for tenant automations. Switching on the cron jobs needs a superadmin.

Most of the setup is done once: two cron jobs, and the permission for the people who look after the tenant’s automations. After that, the limits on this page decide when nexxus stops an automation instead of letting it run.

Automations run in the background, driven by cron jobs. nexxus creates them switched off the first time it starts, so a new installation can build and test automations, but none of them runs by itself.

  1. Open SettingsOperationsMaintenanceCron Jobs.

  2. Set AUTOMATION_EVENTS and AUTOMATIONS to Active.

  3. If people use the delivery Bell and digest, set NOTIFICATION_DIGEST to Active as well.

The page Cron Jobs with the jobs AUTOMATIONS and AUTOMATION_EVENTS, both active
Both jobs active. The comments next to them come from the server and are in German.
JobRunsDoes
AUTOMATION_EVENTSevery 2 secondsstarts the automations with A record is created and A record is changed
AUTOMATIONSevery 60 secondsruns On a schedule at the minute, checks A condition holds every 5 minutes, and once an hour clears out old history
NOTIFICATION_DIGESTduring working hoursmails the notifications of Bell and digest that are still unread after four working hours, at most once a day

The jobs run for the whole installation, for every tenant at once, so only a superadmin can switch them. If the page is missing from your menu, ask the person who runs your nexxus installation.

As long as a job is off, the editor says so as soon as you pick a trigger that depends on it, for example Record triggers do not run yet: a superadmin has to switch on the cron job “AUTOMATION_EVENTS” (Settings › Operations › Maintenance › Cron Jobs).

Nothing is lost while AUTOMATION_EVENTS is off. nexxus notes every change to a record that a switched-on automation listens to, and the job works through those changes once it runs. AUTOMATIONS does not catch up in the same way: a condition takes stock at its first check, and a schedule runs from the next point in time on.

Your own automationsTenant automations
WhereMy profileAutomationsSettingsOperationsAutomations
Who creates and changes themeveryonepeople with the permission automation.manage
Who sees themonly the person they belong to, not even administratorseveryone with automation.manage
Runs asthe person they belong tothe person under Runs as
StepsNotify (that person only), Run an action, If / elseall four, including Send mail
At most50 per person200 per tenant

Administrators have automation.manage anyway. For anyone else, add it to one of their roles under SettingsUsers & accessAccess Roles: the role editor finds it by its key, under the module Automations with the action Manage. See Roles and permissions. Without it, saving a tenant automation fails with Mandantenweite Automationen braucht das Recht „Automationen verwalten“. (tenant automations need the permission to manage automations).

Personal automations need no permission. What they can do is limited by the rights of their owner anyway.

Every automation acts as one person. It reads the records that person may read, and its actions run with that person’s rights. A record outside those rights never matches a condition, and an action the person may not run fails.

  • A tenant automation runs as the person who created it. Under Runs as, someone with automation.manage can hand it to another person of the tenant. That person must have accepted the invitation.
  • A good choice is the person responsible for the subject, the information security officer for incidents for example. Then the automation acts with the rights that person has anyway.
  • Choosing another person ends a pause, and the automation takes stock afresh: what matches at that moment does not trigger. It still has to be switched on and saved to run again.

When the person is deactivated or deleted, the automation pauses at its next run. For a tenant automation, everyone with automation.manage is told in the bell. Pick another person under Runs as, switch the automation on and save. Until then saving fails with Die Person, der die Automation gehört, gibt es nicht mehr oder sie ist deaktiviert. (the person it belongs to is gone or deactivated). A personal automation of a person who left pauses too; nobody else sees it, so nobody is told.

LimitValueWhen it is reached
Runs of one automation per hour60, adjustable per automation under Maximum runs per hour up to 600the automation pauses
Records in one run whose steps change data or send mail50the run is skipped and the automation pauses
Failed runs in a row5the automation pauses
Automations triggering each other in a row3the fourth is skipped
Records a condition may match, in the mode every record that starts to match1,000the check stops with an error
Records a schedule handles in one run1,000
Steps per automation, including those in If / else20the editor refuses more
Levels of If / else inside each other3the editor refuses more
People in one Notify step50
Addresses in one Send mail step20
Repeat every … days30
Shortest Interval of a schedule15 minutes
History90 days, at most 500 runs per automationolder runs are deleted
Own automations per person50creating more fails
Tenant automations per tenant200creating more fails

Why the limits are there, and what to do when an automation pauses, is in Test run and history.

The switch on each card in the list turns an automation on or off without opening it. A switched-off automation rests. When it is switched on again, it takes stock afresh: a trigger A condition holds starts from what matches at that moment and does not report it.

At the top of the editor, next to the name:

  • Duplicate opens a new automation with the same settings, named … (copy). It starts switched off, so two automations do not do the same thing, and it runs as the person who saves it. Nothing is created until you click Create automation.
  • Delete asks first: The automation ”…” will be deleted and stops running. Its history goes with it.

The update that brought automations moved every notification rule into a personal automation of its owner, with the trigger A condition holds and one step Notify me. The automation keeps the rule’s name, source, condition, delivery and whether it was switched on.

  • It also keeps what the rule already knew, so nobody gets a notification twice and nobody misses one.
  • The rule itself is switched off and no longer shown.
  • If the cron job NOTIFICATION_RULES was on, the update switches on AUTOMATIONS in its place, on the same server. Otherwise switch on the jobs as described above.

Nobody has to do anything else. The people who had rules find them under My profileAutomations.