# Manage rules & binds

This topic describes how to manage rules, binds, and rulesets.

All events in Rebilly are accessible through the rules engine.
You can configure automations to trigger when specific events occur.
Each event maintains a list of automations that are to be executed under specified conditions when the event occurs.
These lists of automations are called rulesets.
Rulesets are executed in the order they are listed on the event.
Draft rulesets provide a means of testing, and comparing changes with the active ruleset before publishing.

There are two methods of creating automations in Rebilly:

- Rules: Can be configured to stop subsequent rules in the event list from being executed.
- Binds: Can be configured to always execute, regardless of rule-based events.
Use this automation type when you want to ensure an automation always executes when an event occurs.


Actions are tasks that are to be executed when an event with a configured rule or bind occurs.
For a list of available actions and how to configure them on available events, see [Actions](/docs/automations/action-types/).

## Create a rule or bind, or draft ruleset

Select one of the following:

- [Pick an action, then follow the steps to create a rule or bind, or draft ruleset](/docs/automations/action-types).
- [Pick an event, select from the available actions, then follow the steps to create a rule or bind, or draft ruleset](/docs/automations/event-types).


## Manage rules, binds, and rulesets

Use this process to manage rulesets that are associated with an event.

1. In the left navigation bar, press .
2. In the **Rules engine** section, press **Rules engine**.
3. Press **Core events** or **Billing events**. 
Events with binds or rules display the word "Binds" or "Rules" followed by the number of rules or binds associated with the event.
4. Press an event with associated rules or binds, then press **Rule set**.
5. Press **Rules** or **Binds**.
6. Select from the following:
Activate or deactivate a rule or bind in the rulesetTurn the **Status** toggle on or off.
Specify that once this rule executes, all subsequent rules in the event list must not be processedPress **Stops further rule processing**.
Copy a rule or bindOn the right of the rule or binds, press .
Edit a rule or bindOn the right of the rule or bind, press .
Edit, then press **Save**.
Delete a rule or bindOn the right of the rule or bind, press .
Adjust the order of rules or binds in the rulesetOn the left of a rule or bind, press .
Add a rule or bind to the rulesetIn the top right of the page, press **Create rule** or **Create bind**, then [Create a rule or bind](#create-a-rule-or-bind-or-draft-ruleset).


## Edit draft rulesets

Each event maintains a list of rules and binds that are to be executed under specified conditions when the event occurs.
These lists of automations are called rulesets.
Rulesets are executed in the order they are listed on the event.
Draft rulesets provide a means of testing, and comparing changes with the active ruleset before publishing.

Use this process to edit draft rulesets.

To create a draft ruleset, see [Create a rule or bind, or draft ruleset](#create-a-rule-or-bind-or-draft-ruleset).

1. In the left navigation bar, press .
2. In the **Rules engine** section, press **Rules engine**.
3. Press **Core events** or **Billing events**.
Events with binds or rules display the word "Binds" or "Rules" followed by the number of rules or binds associated with the event.
4. Press an event with associated rule or bind, then press **Draft rulesets**.
5. Select one of the following:
Publish a draft rulesetOn the right of the item, press .
Copy a draft rulesetOn the right of the item, press .
Delete a draft rulesetOn the right of the item, press .
Edit a draft ruleset  1. On the right of the ruleset, press .
  2. Press **Rules** or **Binds**.
  3. Select from the following:
Activate or deactivate a rule or bind in the rulesetTurn the **Status** toggle on or off.
Specify that a rule, once executed, stops all subsequent rules in the event list from being processedPress **Stops further rule processing**.
Adjust the order of rules in the rulesetOn the left of a rule or bind, press .
Edit a rule or bind in a draft rulesetOn the right of the rule or bind, press .
Edit, then press **Save**.
Delete a rule or bindOn the right of the rule or bind, press .
Add a rule or bind to a draft rulesetOn the right of the page, press , then press **Create rule** or **Create bind**, then [Create a rule or bind](#create-a-rule-or-bind-or-draft-ruleset).
Edit draft ruleset informationOn the right of the page, press , then press **Edit information**.
Edit, then press **Save**.
Publish a draft rulesetIn the top right of the page, press , then press **Publish**.