Skip to main content

YesNoTask

YesNoTask provides an interface for choosing between two options: “Yes” and “No”. This is the simplest task type in Ziva, perfect for confirmations and binary decisions.

Creating a Task

Main Methods

Creating with Settings

Getting Results

Options and Constants

Default Configuration

Default Selection

Timeouts

Custom Labels

By default “Yes” and “No” are used, but you can configure custom labels:

Result Line Output

When a task finishes, Ziva shows an extra line with the chosen answer. Hide it when you need a tighter layout:

Treating “No” as Success

By default a “No” answer is recorded as a soft error so the queue summary can highlight the refusal. If you prefer to treat “No” as a successful outcome, enable the helper:

Usage Examples

Simple Confirmation

Confirmation with Timeout

Custom Options

See Also