Unqork documentation is available in two workspaces: UnqorkAI for the latest AI-first platform, and legacy Unqork for previous versions. Use the drop-down near the logo to switch.

Decisions Component

Prev Next

The Decisions component evaluates input values against a set of conditional rules and applies output properties to module fields based on matching rows. Use it to show or hide fields, disable inputs, set values, or control module behavior dynamically.

How to read settings tables

The tables below describe each configurable option as it displays in the UnqorkAI platform. Values are formatted as follows: inline code — a value to type exactly as shown | Bold — a value selected from a drop-down, radio button, tab, or choice chip | ON/OFF — toggle state | ✓ — checkbox checked | ☐ — checkbox unchecked

General Settings

Setting

Field

Type

Default

Description

Property ID

key

Text input

rule

The unique identifier for this component instance.

Canvas Label Text

label

Text input

—

Identifies the component on the Module Builder canvas. Does not display.

Actions Settings

Triggers

Setting

Field

Type

Default

Description

Trigger Type

triggerType

Radio button

Manual

Sets when the component executes.
• Manual: Waits to be triggered by another component.
• Watch: Executes whenever a defined input field changes.

Disable Execution

disabled

Toggle

OFF

Prevents the component from executing when triggered.

Execution Type

decisionData.decisionType

Drop-down

First

Controls how many matching rules execute.
• First: Executes only the first matching rule.
• Merge: Executes all matching rules.
• Last: Executes only the last matching rule.

Inputs

Defines the fields evaluated against the micro-decision rules.

Column

Field

Type

Description

Source

id

Property ID

The module field to evaluate.

Alias

alias

Text input

An alias used to reference this field in the Conditionals table.

Type

type

Drop-down

The comparison type for this input (for example, exact match, contains).

Required

required

☐/✓

When checked, this setting marks the input as required for the decision to execute.

Silent

silent

☐/✓

When checked, this setting excludes this input from triggering re-evaluation on change when using Watch mode.

Outputs

Defines the fields and properties set when a rule matches.

Column

Field

Type

Description

Source

id

Property ID

The module field to update when a rule matches.

Type

type

Drop-down

The property to set on the output field. See Output Types Reference for all available types.

In modules using the Vega (2.0) runtime, the following additional output types are available in the Type drop-down:

Type

Description

Vega Execute

Triggers an execution on a target Vega component.

Vega Operation

Sends a custom JSON operation to a Vega component or module.

Vega Value

Sets the value of a target Vega component.

Conditionals

Defines the decision rules. Each row maps input values to output values. Rows are evaluated in order according to the Execution Type.

Column

Description

Values

The values that trigger this rule. One column per input field.

Values

The values to apply to output fields when this rule matches. One column per output field.

In a long table, the header row stays in view as Creators scroll down. The horizontal scrollbar sits at the bottom of the visible table, so Creators can scroll sideways without scrolling to the last row first. Duplicate values in the Inputs table do not affect how the Conditionals table scrolls.

Cells truncate long values at rest and do not show a horizontal scrollbar within the cell. Clicking the top cell does not stretch the column. The stored value stays complete.

Unit Tests (Legacy)

The Unit Tests (Legacy) section verifies decision behavior by running the component against test data. Rows are filled in from the configured Inputs and Outputs.

Select Refresh to sync the test rows with the component's current Inputs and Outputs. The button is highlighted when the rows no longer match. Creators can select Refresh, edit test values, and run tests while a module is in Viewing mode. The module does not save these test changes. To save test changes, make them in Editing mode.

Inputs

Column

Field

Type

Description

Input

inputField

Read-only

The input Source from the component configuration.

Label

inputLabel

Read-only

The display label for the input field.

Value

inputValue

Text input

The test value to pass into the decision.

JSON

json

☐/✓

When checked, treats the value as JSON.

Outputs

Column

Field

Type

Description

Output

outputField

Read-only

The output Source from the component configuration.

Label

outputLabel

Read-only

The display label for the output field.

Expected

expectedValue

Text input

The value the decision is expected to produce. Displays pass/fail styling against the actual result.

Actual

actualValue

Read-only

The result the decision produces when the test runs.

JSON

json

☐/✓

When checked, treats the value as JSON.

Advanced Settings

Setting

Field

Type

Default

Description

Set Debounce

debounceSetting

Number input

0

Sets the delay before executing after being triggered, in milliseconds (ms).

Execute All Child Decisions

chainDecisions

Toggle

OFF

When ON, triggers child decisions after this component executes.

↳ Execute Decisions from Last to First

chainDecisionBackwards

Toggle

OFF

Reverses the execution order of child decisions. Visible when Execute All Child Decisions is ON.


Changelog

Date

Change

2026-06-09

Added Vega output types (Vega Execute, Vega Operation, Vega Value) to Outputs section.

2026-11-17

Renamed Unit Testing to Unit Tests (Legacy) to match the UI. Added Refresh and Viewing mode behavior. Described the sticky header, bottom scrollbar, and duplicate-input scrolling in the Conditionals table.

2026-11-18

Described how the Conditionals table truncates long values.

—

Initial publication.