Specifications

Choice Statement
sequence # Manually enter employee data
{
event "EventA1" Windows SetFocus { Title="Enter Employee Data" }
event "EventA2" Windows MenuCommand { Text="Record->Save" }
event "EventA3" Windows StatusMessage { Text="Record Saved" }
}
sequence # Import employee data from a file
{
event "EventB1" Windows SetFocus { Title="Import Employee Record" }
event "EventB2" Windows MenuCommand { Text="Record->Save" }
event "EventB3" Windows StatusMessage { Text="Record Imported" }
}
}
}
Choice Statement
Sometimes a user can perform a transaction in many ways. Use the choice
statement to specify multiple, valid event sequences for a transaction.
Application Response considers a choice statement to be satisfied if it observes
any one of the event specifications.
Syntax
choice
{
event-specification
event-specification
event-specification
.
.
.
}
event-specification
A choice statement is matched if any one of its event specifications is satisfied.
Each event specification can itself be a single event specification, choice
statement, sequence statement, or last statement.
Examples
In the following example, a user of the application can create a new employee
record by either manually entering the employee’s data into a window, or by
importing it from a file.
166 BTStudio Administration Guide