---
title: "Building rules"
description: "Create and manage requirement rules under Admin, Requirements, and use the rule editor to decide what a print job needs before it can queue, with writing tips."
url: https://pluraprint.com/docs/rules-and-quotas/building-rules
---
# Building rules

Create and manage requirement rules under Admin, Requirements, and use the rule editor to decide what a print job needs before it can queue, with writing tips.

This page covers the **Requirements** page (**Admin → Requirements**, under **Policies**), where administrators create and manage the rules described in [Rules and quotas overview](https://pluraprint.com/docs/rules-and-quotas/overview).

Caution

Rules affect every print job that matches their conditions, often across an entire site or your whole organization. Test new or changed rules with the **Test** tab before you rely on them, and start with a narrow condition, such as one site or a time window, before widening it.

## The Requirements list

Open **Admin** in the sidebar, then choose **Requirements** under **Policies**. This page used to be called **Rules**. Old links to it still open here. Rules for actions on existing jobs, such as cancelling or reprinting, have their own page. See [Action rules](https://pluraprint.com/docs/rules-and-quotas/action-rules). The page has:

- A **search box** and **tag filters** to find specific rules.
- A **table** of rules, with columns for:

  - **Name**: the rule’s name and description.
  - **Requirements**: badges showing what this rule produces (for example, Approval or Maximum cost).
  - **Tags**: labels you’ve added to organize related rules.
  - **Scope**: the site this rule applies to, or “Global” for all sites.
  - **Priority**: a number used for display ordering (higher numbers appear first; every matching rule is still enforced).
  - **Status**: “Enabled” or “Disabled”.

Select **New rule** to create one, or use the row menu to edit an existing rule. The **Delete** action removes a rule after you confirm, and the change applies to job evaluation immediately.

## The rule editor

Creating or editing a rule opens a full-page editor with two parts: a **Details** panel on the left, and **Conditions** / **Requirements** / **Test** tabs on the right.

### Settings

| Field | Description |
| --- | --- |
| **Name** | A short, descriptive name (for example, “Large jobs need staff approval”). |
| **Description** | Internal notes about why this rule exists. Only administrators see it. |
| **Site scope** | Apply this rule to one site, or choose “Global (all sites)” to apply it everywhere. |
| **Priority** | Controls display ordering when rules are listed and previewed. Higher numbers come first; priority never changes which rules are enforced. |
| **Tags** | Free-form labels (for example, “after-hours”, “large-job”) to group related rules. |
| **Message to user** | Shown to the submitter on both the web and station checklists, explaining _why_ this requirement applies. For a deny requirement, this is the primary explanation shown when the job is blocked. It is shown only once the rule has actually matched; see [Rules that depend on something Pluraprint doesn’t know yet](https://pluraprint.com/docs/rules-and-quotas/overview#rules-that-depend-on-something-pluraprint-doesnt-know-yet). |
| **Enabled** | Pluraprint ignores a disabled rule completely. |

### Build: when the rule applies

If you leave the condition empty, the rule **fires on every job**. Otherwise, you build a condition out of one or more **checks**, optionally grouped with **All conditions** (AND), **Any condition** (OR), or **not**.

Tip

Pluraprint uses three-valued logic: a check can be **True**, **False**, or **Unknown** (when the relevant information isn’t available yet, for example, the job’s owner hasn’t been identified). Pluraprint treats an **Unknown** result as “can’t tell yet, so ask the user”, neither a pass nor a fail. The Test tab reports whether the rule matches and which information is still unknown.

#### Adding a check

Each check has three parts:

1. **Field**: what to look at, organized into groups:

   | Group | Example fields |
   | --- | --- |
   | Job | Estimated duration, estimated material, estimated cost, file size, printer model, process (filament or resin), print group, accepted printer models, build plate, is reprint, site, definition completed at |
   | Slicer settings | Infill density (0–100%), supports enabled, layer height (mm) |
   | Materials | Material type used (for example, PLA, ABS, or ASA), material type key (for example, `pla`), material trait (for example, `property.abrasive`), material product, brand, color family, whether material details are available |
   | Owner | Owner identified, owner’s roles, how the owner was identified (card, sign-in, PIN, automatic, admin override) |
   | Source | Submission source (Web, Station, API/Integration) |
   | Queue | Jobs currently waiting, estimated wait time |
   | Time | Hour of day, day of week |
   | Action | Action source, how the acting user was identified |
2. **Operator**: how to compare it, in plain language:

   | Operator | Meaning |
   | --- | --- |
   | equals / does not equal | Exact match |
   | greater than / less than / greater or equal / less or equal | Numeric comparison |
   | is between | Numeric range (inclusive) |
   | is one of / is not one of | Match against a list of values |
   | contains / does not contain | Case-sensitive text search |
   | starts with / ends with | Case-sensitive prefix or suffix |
   | includes any of / includes all of / does not include | Match any, every, or none of the selected list values |
   | is empty / is not empty | Check a known text or list value for content |
   | matches regex | Matches a regular expression (for advanced use) |
   | is known / is unknown | Whether this field has a value yet |
3. **Value**: entered with a widget appropriate to the field , such as a dropdown for roles or sites, number fields with the correct units and limits, or a checkbox for true/false. Infill density is entered as a percentage from 0 to 100, and layer height is entered in millimeters.

For lists, **equals** compares the complete set of values, ignoring order and duplicates. For example, a job using PLA and PETG includes PLA, but does not equal the set containing only PLA. Older saved comparisons appear with a **legacy** label and keep their original behavior.

**is empty** is different from unknown: an unavailable value remains Unknown. Use **is known** and its checkbox to test whether a value is available. Empty checks need no comparison value.

#### Optional slicer metadata

Infill density, support generation, and layer height are extracted from Orca 3MF project settings when the file contains them. Other files may not include these values. Pluraprint handles a missing value this way:

- A normal comparison such as **Infill density greater than 30%** evaluates to **Unknown**. The job stays in review instead of bypassing a restriction that Pluraprint can’t check.
- **is known** matches only when the value is available; **is unknown** matches only when it is absent.
- To skip a threshold rule when metadata is absent, create an **All conditions** group containing **Infill density is known** and **Infill density greater than 30%**. The first false check makes the whole group false for files without that metadata.
- To require review whenever metadata is absent, add a separate rule with **Infill density is unknown** and produce the appropriate approval or deny requirement.

Material conditions use the material labels reported by the slicer. To restrict ABS and ASA, choose **Material type used → includes any of** and enter `ABS` and `ASA`. The condition matches if the job uses either material.

#### Grouping conditions

Use **Add group** to nest conditions, and **Add check** to add a check:

- **All conditions**: every condition inside must be true (AND)
- **Any condition**: at least one condition inside must be true (OR)
- **not**: inverts the result of what’s inside

Collapse checks to read a compact summary. Expand them to edit. Each check or group can be reordered, duplicated, or deleted using the icons on its card.

### Build: what the rule requires

This tab defines what gets added to a matching job’s checklist. Select **Add requirement** and choose a type:

Every print job requires an identified owner before it can queue. You do not need a rule for this. Existing **Owner identified** requirements are deprecated and have no effect, including their rule messages. You can remove them. Other requirements in the same rule still apply.

| Requirement | What it adds to the checklist |
| --- | --- |
| **Owner role** | The job’s owner must hold a specific role, such as “staff”, or a role that includes it. |
| **Approval** | A person must approve the job. You can set a label (for multi-stage approvals), an optional time limit (SLA), and **constraints**: required/forbidden roles or specific users who may approve, and whether the requester can approve their own job. |
| **Identification location** | The job’s owner must identify at a specific location: Web or Station. |
| **Maximum duration** | Caps the job’s estimated print time (hours and minutes). Jobs over the limit are blocked. |
| **Maximum material** | Caps the job’s estimated material usage (in grams). |
| **Maximum cost** | Caps the job’s estimated cost. |
| **Deny** | Blocks the job outright, with a reason shown to the user and an optional code for integrations. |
| **Custom** | A requirement satisfied by an external system or integration, identified by a key, with a message and optional link shown to the user. |
| **Print access** | The owner isn’t under an active [print restriction](https://pluraprint.com/docs/rules-and-quotas/print-restrictions). Pluraprint adds this to every job, so you don’t add it yourself. |

Each requirement type’s card explains what it does and shows only the fields relevant to it. Pluraprint prevents a rule from being saved with duplicate requirements, empty condition groups, unknown field names, incompatible operators, or invalid regular expressions.

### Jobs that run on more than one model

With [interchangeable models](https://pluraprint.com/docs/printers/interchangeable-models), rules check each model’s own file. A model that breaks a rule, can’t be checked, or needs more approval is left off.

### Test before you save

The Test tab contains a full rule tester. It has no built-in sample cases. You create cases that match how your organization works. A case can start from a real print job, which loads the same job, queue, identity, approval, site, and slicer context used by production evaluation. You can then override any value without changing the real job.

Use the three case tabs to test:

- **Identity & approvals**: anonymous or identified owners, the identifying user and method, effective roles, and any number of labelled approvals by different users.
- **Job**: name, estimates, file size, printer model, reprint state, site, definition location, materials, and optional slicer settings.
- **Where & when**: submission and action sources, site and station, queue counters, exact time, hour, and day of week.

Optional values can deliberately be left **Unknown**. This is useful for checking partial kiosk and web submissions before the owner, definition, or slicer metadata is available. The result shows every rule as **Matched**, **Not matched**, or **Unknown**, lists the fields behind an Unknown result, and renders the cumulative requirements checklist.

Name and save cases you expect to reuse. Saved cases stay in the current browser and can be duplicated as a starting point for boundary tests. Select **Test requirements** on the **Requirements** page to open a dedicated tester with the same cases and controls. It evaluates the complete active global-and-site rule bundle. List filters and pagination do not limit that test.

[![Rule tester showing an anonymous owner, two matching rules, and the resulting owner and staff-review requirements.](https://pluraprint.com/images/docs/rule-preview.webp)](https://pluraprint.com/images/docs/rule-preview.webp)

Demo example: both rules match. The job still needs an owner and a staff approval; matching a rule does not satisfy its requirements. Select the image to enlarge.

## Tips for writing rules

- **Start narrow.** Limit the site or condition while testing. Tags only organize rules; they do not limit which jobs a rule affects.
- **Use the message field.** People see the “Message to user” text on web and station checklists, so say why the policy applies and what to do next. Write it in the present tense, for someone the rule has already matched, such as “Your account is suspended. See the lab desk.” Pluraprint shows it only once the rule has matched.
- **A rule about the owner needs the owner.** A condition on the job owner’s role or identity can’t be judged until they’ve signed in or tapped a card. Such a rule shows as _may apply_ and waits for identification. Every job requires an identified owner automatically.
- **Remember rules combine.** If a job matches three rules that each require approval, all three apply. Requirements deduplicate only when their complete configuration is identical. Reusing an approval label with different constraints keeps both constraints, so use different labels for separate approval stages.
- **Disable instead of delete** while testing changes. You can turn a rule back on instantly, but deleting it is permanent.
