To open the Host Event Edit dialog box, click Host Events on the Model menu or click the Edit button on the Event Expression Editor dialog box. Use this dialog box to add, edit, or delete global events to be used in operations throughout the modeling process.
Note: The events described here are used to synchronize the Host Integrator server with the state of the host application. These host synchronization events should be distinguished from the event handling that performs or extends actions in the model file itself.
Defining global host events enables you to rely on a specific order of events encapsulated into one WaitForMultipleEvents command in an operation. This feature enables a more reliable way to synchronize how data is being sent from a character mode host. Since Host Integrator handles only one command per packet of data, the WaitForMultipleEvents command is designed to encapsulate several global events into one unique command in an operation.
Enter a name for your event in the Event name box.
Choose from the following list of possible global events:
Event Name | Description | Parameters |
---|---|---|
Condition(WaitForCondition "Entity", "Condition") |
Waits until the condition is satisfied. The operation containing the event is paused until the condition is satisfied. |
|
Cursor at attribute(WaitForCursorAtAttribute "Entity", "Attribute") |
Begins a wait that is satisfied when the cursor appears in the first coordinate of an attribute on a particular entity. The operation containing the event is paused until the wait expires or is satisfied. |
|
Cursor at recordset field(WaitForCursorAtRecordset "Entity", "Recordset",
"Field") |
Begins a wait that is satisfied when the specified recordset field data is received from the host. The operation containing the event is paused until the wait expires or is satisfied. |
|
Cursor enter terminal field(WaitForCursorEnterField "Row", "Column") |
Begins a wait that is satisfied when the cursor enters the terminal field specified by the row and column coordinates. The operation containing the event is paused until the wait expires or is satisfied. |
|
Cursor enter position(WaitForCursorEnterPosition "Row", "Column") |
Begins a wait that is satisfied when the cursor enters the position on the terminal screen specified by the row and column coordinates. The operation containing the event is paused until the wait expires or is satisfied. |
|
Cursor not in terminal field(WaitForCursorExitField "Row", "Column") |
Begins a wait that is satisfied when the cursor exits the terminal field specified by the row and column coordinates. The operation containing the event is paused until the wait expires or is satisfied. |
|
Cursor not in position(WaitForCursorExitPosition "Row", "Column") |
Begins a wait that is satisfied when the cursor exits the position on the terminal screen specified by the row and column coordinates. The operation containing the event is paused until the wait expires or is satisfied. |
|
Display string (WaitForDisplayString "String", "Timeout", Row, Column, Relative) |
Begins a wait that is satisfied by the appearance of the specified string at the row and column coordinates on the terminal screen. The string can be received from the host or typed by the user. The operation is paused until the wait expires or is satisfied. |
|
Keyboard enabled(WaitForKeyboardEnabled Duration) |
Begins a wait that is satisfied when the keyboard is enabled. Use the Duration argument to specify how long to wait before an error occurs. The operation is paused until the wait expires in the specified duration or is satisfied. |
|
Host communication string(WaitForCommString "Text","Count") |
Begins a wait that is satisfied by the reception of the specified string from the host. The operation containing this event is paused until the wait expires or is satisfied.
For VT and character mode HP hosts, you can wait for datastream sequences that include nonprintable characters using the Model Debug Messages dialog box. As the terminal processes characters, you can copy and paste text into the Text box to configure operations that include raw host communications. Notes:
|
|
Host communication silence (WaitForCommSilence Duration) |
Waits for the absence of data traveling to or from the host. Use the Duration argument to specify the duration of the silent period before an error occurs. |
|
Host connection (WaitForHostConnection) |
Waits for a host connection to occur. | Enter a name for your event in the Event name box. |
Host disconnect (WaitForHostDisconnect) |
Waits for the lack of a host connection. | Enter a name for your event in the Event name box. |
Host update (WaitHostUpdate TopRow, LeftCol, BottomRow, RightCol,
RegionType, Relative) |
Begins a wait that is satisfied when the specified region on the terminal screen is updated by the host. The operation containing the event is paused until the wait expires or is satisfied. |
|
Milliseconds(WaitMilliseconds Duration) |
Begins a wait that is satisfied after the specified duration of time in milliseconds. |
|
New host screen (WaitForNewHostScreen) |
Waits for a new screen to be sent from the host. | Enter a name for your event in the Event name box. |
To add a global host event:
To create a WaitForMultipleEvents command using one or more global events:
Note: Each event contains unique parameters. For documentation on a specific event, select the event in the Events box and click the Event Help button.