---
title: "Outputting Data From Rule Steps"
slug: "outputting-data-objects-from-rule-steps"
description: "This document shows how to output Data Objects via Rule Steps in Decisions. The document includes a tutorial that shows how to configure a Rule Step to output data as an Account Object."
tags: ["Rules"]
updated: 2025-06-16T19:38:04Z
published: 2025-06-16T19:38:04Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Outputting Data From Rule Steps

## Overview

**Rule Steps** can be configured to return data objects, rather than just outputting true/false, using the following output options: It is possible to have options as an output. The same behavior is also available for Truth Tables.

| Output Option | Description |
| --- | --- |
| New Output Data | Defines a new piece of data to output |
| Change Value | Changes the value of the input |
| Modify Text | Adds text before (Prepend) or after (Append) input data |
| Run Flow | Runs a Flow when a result or else is returned |

---

## Outputting Data From a Truth Table

For a Truth Table, Selecting the + symbol in the header column for the Output section will provide a dialog box to define the data object.

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h25_03.png)

---

## Outputting Data From Statement Rules

The Rule in this example will determine if the age provided is less than or greater than 21. If it is under 21, it will output the message "You MUST be 21. Purchase is denied.". If the age given is over 21, the message will display "Purchase is approved". Below is a downloadable example that can be [imported](/v9/docs/importing-and-exporting-projects).

[Outputting Data Objects From Rule Steps-07042020-042717.zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Outputting%20Data%20Objects%20From%20Rule%20Steps-07042020-042717.zip)

1. In the Flow Designer, select the **Start** step. On the **Properties** panel, click SHOW EDITOR under **Flow Input Data** below the FLOW INPUTS category.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h28_01.png)
2. On the **Flow Inputs** dialog window, enter "Age" in the **Name** field. Click the dropdown list under the **Type** field and select **Int32 [Number]**. **Save**and then close the window to return to the Flow Designer.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h28_46.png)
3. Click on the**Done** path. Select the **Run Rule** step and click ADD. [Create or pick a new Statement Rule](/v9/docs/create-rules).![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h29_54.png)
4. Next, click SETUP INPUT DATA and click DEFINE on the **Rule Input Data** dialog window.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h31_05.png)
5. On the **Input Data** dialog window, enter "Age" under the Name field and change the Type to Int32 [Number]. Save and close to return to the Rule Designer.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h31_45.png)
6. In the **If statement**block, define a Rule that will evaluate if the "Age" is greater than or equal to the value of 21.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h32_32.png)
7. To output data objects, click **Add** under **Return True** in the **Result** block and then click **New Output Data**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h32_53.png)
8. In the **Add****Output Data** dialog window, enter "Purchase" under the Name field and click OK to return to the Rule Designer.
9. In the textbox next to Purchase, enter "Purchase is approved." In the **Else statement** block, click the Purchase checkbox and enter "You MUST be 21. Purchase is denied." in the textbox. Save and close the Rule to return to the Flow Designer.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h35_07.png)
10. Connect the Done outcome path to the **End** step and click Save.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h35_53.png)

---

## Debug

1. Click **Debug** on the top panel.
2. Enter a number in the textbox under Age that is less than 21 and click START DEBUGGING. Select the **Run Rule** step, click **Execution 1**, then select **View Input/Output Data**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h36_35.png)
3. The result will display the number entered and the output will display the message that was typed in the Else statement block.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h37_01.png)
4. Click CREATE NEW SESSION and enter a new value that is greater than 21. After the Debugger has run, view the Input/Output Data. The result will display the message that was typed in the Result block.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-16_15h37_40.png)

---

For further information on Rules, visit the [Decisions Forum](https://community.decisions.com/categories/Rules).
