---
title: "Create and customize AML rules"
url: "https://help.capitech.no/en/article/create-and-customize-aml-rules"
language: "en"
last_updated: "2026-10-23T08:19:43.569Z"
---

# Create and customize AML rules

You can create custom work time limits (AML rules) in Capitech Flow for employees, work time groups, departments, or your entire organization. This is relevant if you have agreements, exemptions, or internal limits that differ from the standard rules.

Work time limits flag potential breaches of working time and rest period requirements when planning in the operational plan.

## Where can you create AML rules?

1.  Go to **Admin → Time → AML**.
2.  Select the **Plan rules** tab.
3.  Click the **plus sign (+)** to create a new rule.

A window opens with two tabs: **General** and **Applies to**.

## Step 1: General - Select the rule type and work time limit

Under the **General** tab, specify the work time limit that should apply.

**Rule type**

Select the rule you want to create:

-   **Maximum hours per day**
-   **Maximum hours per week**
-   **Minimum hours between shifts**
-   **Weekly long rest**

**Active**

Specify whether the rule should be active.

**Count and unit**

Enter the number of hours agreed for the rule.

The unit is set automatically based on the rule type you select.

**Warning message**

A warning message is suggested automatically based on the selected rule type and number.

This is the message shown to the manager when the work time limit is exceeded or breached.

You can edit the warning message to match your organization’s rules and agreements.

**Basis**

Select the basis for creating the work time limit.

You can choose from:

-   Collective agreement with a union with the right of nomination
-   Written agreement with employee representatives
-   Individual written agreement with the employee
-   Consent from the Labour Inspection Authority
-   Internal limit stricter than the law
-   Other, with an explanation

You are responsible for ensuring that the work time limits you set comply with applicable legislation, agreements, and any exemptions. Capitech checks planned working time against the limits you have entered, but does not assess whether your custom limits are legally permitted.

**Reference**

For some options under **Basis**, an additional field called **Reference** appears.

Here you can enter a reference to the agreement, decision, or other basis for the custom rule.

We recommend entering a reference whenever the field is available. This makes it easier for you and other administrators to find out why the rule was created and what it is based on.

Once you have completed the fields, click **Next**.

## Step 2: Applies to - Select who the work time limit applies to

Under the **Applies to** tab, select the employees who should be covered by the rule.

You can choose from four options:

**Client (all employees)**

Select this if the work time limit should apply to all employees in your organization.

**Departments**

Select one or more departments to be covered by the rule.

The rule applies to employees assigned to the selected departments in the **employee register**. This ensures that all working time for each employee is included when calculating potential AML breaches, rather than only the hours planned or worked in a particular department.

**Important:** The department assignment is taken from the employee record, not from the department selected on a shift or time entry.

If a new employee is later assigned to the department in the employee register, the work time limit will also apply to that employee. Similarly, the rule will no longer apply to an employee who is removed from that department.

**Work time groups**

Select one or more work time groups to be covered by the rule.

Work time groups are custom groups of employees who should have the same work time limits, regardless of department.

You create and manage these groups under the **Work time groups** tab in the AML module.

See the separate article: *Create work time groups for AML rules*.

**Employees**

Select one or more individual employees to be covered by the rule.

This is relevant if certain employees have individual agreements or work time limits that differ from those of other employees.

## Step 3: Set the from and to dates

Finally, you can specify the period during which the rule should apply.

-   **From date:** Specify when the rule should take effect.
-   **To date:** Specify when the rule should stop applying, if relevant.

You can leave the date fields blank if you do not need to limit the period.

We recommend setting a start date if the work time limit is based on an agreement that takes effect on a specific date.

**Note:** For rules calculated per week, the date range applies to whole weeks, from the first Monday to the last Sunday within the selected period.

Click **Save** to create the work time limit.

## How are AML rules prioritized?

If several active rules of the same type could apply to an employee, the following priority order is used:

1.  **Employee** - rules that apply directly to the employee.
2.  **Work time group** - rules that apply to a defined group.
3.  **Department** - rules based on department assignments in the employee register.
4.  **Client** - general rules for the entire organization.

This allows you to have standard rules for your entire organization while individual employees, groups, or departments have their own work time limits.

## Can you change the standard rules?

The standard rules provided by Capitech can be deactivated or activated, but cannot be edited directly.

If you need a different work time limit, you must create a custom rule.

## Frequently asked questions

**Where can we create custom AML rules?**

Go to Admin → Time → AML → Planning rules, and click the plus sign (+).

**Can we change the warning message for an AML rule?**

Yes. A warning message is suggested automatically when you select a rule type, but you can edit the text.

**What is the Basis field used for?**

The Basis field specifies why the work time limit was created, such as a collective agreement, an agreement with employee representatives, or an internal limit.

**Which department is used when an AML rule applies to a department?**

The AML rule uses the department assignment in the employee register. The department on a planned shift or time entry does not affect which department rule applies.

**Does a department rule automatically apply to new employees?**

Yes. When an employee is assigned to the department in the employee register, the relevant work time limit will also apply to that employee.

**Can an AML rule apply only to specific employees?**

Yes. Under Applies to, you can select one or more employees.

**Can we set a time period for an AML rule?**

Yes. You can set start and end dates to control when the rule applies.
