Completing the state table

When you have completed your 3270 server script, use this procedure to invoke a 3270 server from a voice application state table. The state table will include states that call the 3270 server, send input data to the server, and retrieve the output data for the voice application.

Note that the SendData and ReceiveData state table actions must be alternated in the state table. You cannot execute multiple SendData actions without intervening ReceiveData actions because a single buffer is allocated for data sent with SendData and ReceiveData.

For an example of a state table that invokes a 3270 server, have a look at the 3270ServerSample state table in the Blueworx Voice Response for AIX: Designing and Managing State Table Applications information.

  1. From the Welcome window, click on Applications —> State Tables
  2. Open the state table: Open the applicable state table.
  3. Modify any states that you need to.
  4. Highlight the state that will precede the 3270 server call so that new states added to the state table are inserted following the highlighted state.
  5. Define states that interact with the 3270 server : Define the states that interact with the 3270 server. You will most likely define states for the following actions: OpenHostServerLink, SendData, GetFindData, ReceiveData, and CloseHostServerLink.

    State table actions are described in the Blueworx Voice Response for AIX: Application Development using State Tables information.

  6. Validate & Save the state table. If necessary, debug errors and try again.