> For the complete documentation index, see [llms.txt](https://docs.decisionrules.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decisionrules.io/doc/rules/rule-flow/warnings-and-errors.md).

# Rule States in Rule Flow

## Understand rule states in Rule Flow

To make it easier to work with rules in Rule Flow, the rules have colored borders.

![](https://437457296-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN4F4-qybg8XDATvios%2F-Mj33eM-1pe2YxkB1VhB%2F-Mj39iv3VzGdeW2uGJOc%2Fcolors.PNG?alt=media\&token=2c52aeab-37f9-47c5-98d4-aff0bbeaaa68)

### Purple - Neutral state

The purple border has a rule if it is in a neutral state - it has no warnings or errors.

![](https://437457296-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN4F4-qybg8XDATvios%2F-Mj33eM-1pe2YxkB1VhB%2F-Mj3GZ07xudX4JaU-akL%2FPurpleBox.PNG?alt=media\&token=dee2f5d8-009a-4b5a-ba23-fe85be22793a)

### Green - Active state

If the user works with the rule, ie has it clicked and sees its sidebar, the rule changes color to green.

![](https://437457296-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN4F4-qybg8XDATvios%2F-Mj33eM-1pe2YxkB1VhB%2F-Mj3Gs65qt_xB_Z89q7j%2FGreenBox.PNG?alt=media\&token=ec40fb96-61f1-4760-aeb8-b3248174023f)

### Yellow - Warning

If a rule has a warning, it will be demarcated a yellow border and an icon![](https://437457296-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN4F4-qybg8XDATvios%2F-Mi_gzQInMhIFTDlhkzm%2F-Mi_iiFVm1PXjK1N1tBh%2FwarningError2.png?alt=media\&token=4bf70b8b-3103-40e9-a10c-38c80c4325b5)will appear next to it.

![](https://437457296-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN4F4-qybg8XDATvios%2F-Mj33eM-1pe2YxkB1VhB%2F-Mj3FSuSjRFnc-LoyADv%2FwarningBox.PNG?alt=media\&token=82de8006-eff1-4455-84bd-55d4cf2f2c40)

{% hint style="info" %}
When you point to the![](https://437457296-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN4F4-qybg8XDATvios%2F-Mi_gzQInMhIFTDlhkzm%2F-Mi_iiFVm1PXjK1N1tBh%2FwarningError2.png?alt=media\&token=4bf70b8b-3103-40e9-a10c-38c80c4325b5), warning information will be displayed.
{% endhint %}

### Red - Error

Errors are serious mistakes that prevent Rule Flow from being saved. A red border and an icon![](https://437457296-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN4F4-qybg8XDATvios%2F-MiaRTnRCde7g25PFHGJ%2F-MiaUcsWKJfc75BFcqbT%2FerrorIcon.png?alt=media\&token=0c5503be-1906-41d5-8d2c-bd98fd62abd5)appear next to a rule that contains errors.

![](https://437457296-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN4F4-qybg8XDATvios%2F-Mj33eM-1pe2YxkB1VhB%2F-Mj3FoSnqTlqxD4UukxW%2FErrorBox.PNG?alt=media\&token=5d0da4bc-fc1a-495f-b150-f3f368302904)

{% hint style="info" %}
When you point to the![](https://437457296-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN4F4-qybg8XDATvios%2F-MiaRTnRCde7g25PFHGJ%2F-MiaUcsWKJfc75BFcqbT%2FerrorIcon.png?alt=media\&token=0c5503be-1906-41d5-8d2c-bd98fd62abd5), errors information will be displayed.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decisionrules.io/doc/rules/rule-flow/warnings-and-errors.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
