# Decision

A *Decision* task invokes one of the two paths in the workflow, depending on whether the logical expression inside the *Decision* object returns a Yes (True) or a No (False) flag.

<figure><img src="/files/74FodSEEV9omKzHFaZ5E" alt=""><figcaption></figcaption></figure>

To use a *Decision* task, drag-and-drop the *Decision* object onto the workflow designer. Configure the object by right-clicking on the object’s header and selecting *Properties* from the context menu.

![](/files/KP2Of2eBuejjXaxOHW18)

This will open the *Decision Properties* window. The configuration window provides the interface to create some decision logic.

![](/files/ukI6KejtqlwinvBsaR0I)

In the *Expression* input box, enter an expression. This expression should return a Boolean result, such as True or False. An example of this expression is shown below. The expression here is based on the presence of erroneous records in a *Run* *Dataflow* task object.

![](/files/TobKXkbpynihWkUWaCG7)

{% hint style="info" %}
**Note:** The right-hand pane, *Objects,* displays the object tree. You can double-click on an object to add it to your expression.
{% endhint %}

This concludes the configuration of the *Decision* object in Astera.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/workflows/decision.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
