# Rule ordering

Published 29 July 2025 · Event Gateway

You can now choose whether transformation rules run before or after filters.

You can now choose whether transformations run before or after filters in your Hookdeck connections — giving you more control over how events are processed, routed, and cleaned up.

Here’s what’s new:

* Flexible Rule Ordering: Use drag handles in the dashboard or define rule order in the API to control execution flow.
* Transform After Filtering: Avoid unnecessary transformation logic and downstream processing by filtering out irrelevant events first.
* Preserved Existing Behavior: No action required for existing connections — they retain the previous transformation-before-filter flow.
* API and Terraform Changes: API version 2025-07-01 has been released with a breaking change: the order of the Transform and Filter rules within the `connection.rules` property determines the execution order.

This small change unlocks a lot of flexibility. Try it out next time you’re shaping event flows or simplifying your transformation logic.