# Step rules: how does the workflow move to the next step?

The app uses the DEXPRO Rules Engine to determine:

<div id="bkmrk-welche-regel-passt-z">

- which rule matches
- to which **next step** it switches
- whether the assignee is overridden
- whether it auto-approves
- and whether the action applies to the header approval, related approvals (lines), or both.

</div>If no rule is defined, the respective step configuration applies.

### Rule group per step ("Show Rules")

<div id="bkmrk-in-der%C2%A0schritte-list">

1. In the **Steps**list, mark the desired step.
2. Action **"Show Rules"**.

</div>If no rule group is stored yet, the app automatically creates a **Rule Group** and enters it on the step.

[![image-1766416116752.png](https://docs.squeeze.one/uploads/images/gallery/2025-12/scaled-1680-/image-1766416116752.png)](https://docs.squeeze.one/uploads/images/gallery/2025-12/image-1766416116752.png)

### Create rules (DEXPRO Core)

On the opened page **Rules**:

<div id="bkmrk-neu.-regelcode%C2%A0und%C2%A0r"><div>

1. **New**.
2. **Rule Code** and **Rule Name** set.
3. **Sequence/Priority** assign.
4. **Active = Yes**.
5. Optional: 
    - **Condition Conjunction** (AND/OR)
    - **Record Matching Type** (Any Record / All Records)

</div></div>[![image-1766416253261.png](https://docs.squeeze.one/uploads/images/gallery/2025-12/scaled-1680-/image-1766416253261.png)](https://docs.squeeze.one/uploads/images/gallery/2025-12/image-1766416253261.png)

### Maintain Advanced Workflow fields on the rule (Next Step, Auto-Approve, Override Assignee)

On the rule there is the area **"DEXPRO Advanced Workflow":**

<div id="bkmrk-regelaktion-setzen-%28"><div>

1. **Rule Action** set (lookup/drilldown) and choose the desired action, e.g. 
    - **Step Transition**
    - **Override Assignee**
    - **Auto-Approve**
2. For **Step Transition** additionally choose **Next Step** (the lookup shows the next possible steps).
3. If related approvals are active: **Applies To** set (Header / Related Only / Header and Related).
4. For **Override Assignee:** **Assignee Type** and **Assignee** maintain.

</div></div>[![image-1770032598479.png](https://docs.squeeze.one/uploads/images/gallery/2026-02/scaled-1680-/image-1770032598479.png)](https://docs.squeeze.one/uploads/images/gallery/2026-02/image-1770032598479.png)

### Add conditions (rule conditions)

On the Rules page:

1. Action **"Show Conditions"**.
2. Add one line per condition: 
    - **Source Table ID** (primary table or related table)
    - **Source Field ID** (field)
    - **Comparison Operator** (operator)
    - **Value** (value; AssistEdit for Enum/Boolean/Between/In Set)

[![image-1766993224263.png](https://docs.squeeze.one/uploads/images/gallery/2025-12/scaled-1680-/image-1766993224263.png)](https://docs.squeeze.one/uploads/images/gallery/2025-12/image-1766993224263.png)

**Tip:** If you use conditions over related tables, the relation in **Related Tables** must be maintained correctly.

### Test rules (without a real workflow)

On the Rules page there are:

- **Test Rule**
- **Test Rule Group**

This lets you check rules/rule conditions against a sample record before starting real workflows.

[![image-1766993340328.png](https://docs.squeeze.one/uploads/images/gallery/2025-12/scaled-1680-/image-1766993340328.png)](https://docs.squeeze.one/uploads/images/gallery/2025-12/image-1766993340328.png)