Actions

There is an ASCII syntax for every state table action described in Prompt statements. In most cases, the name of the action is the same. The syntax of the state table actions includes:

The labels, descriptions, comments, parameters, and edges can be coded like this:

label: "state description"
  action(parms)
    edge edgename:  label
    edge edgename:  label
    <...>
;    # comment ; indicates end of state

Note that the label, description, and comment are optional.

For example:

start: "get input from caller"
   GetData(buffer1, 12, 25, 10, 5)
     edge EDGE_GETD_LEN_OK:      play_voice
     edge EDGE_GETD_TOO_SHORT:   start
     edge EDGE_GETD_TOO_LONG:    start
     edge EDGE_GETD_INCOMPLETE:  start
     edge EDGE_TIMEOUT:          start
     edge EDGE_LAST_TIMEOUT:     last_timeout
     edge EDGE_HUP:              hup
;    # end of GetData 

There is an example of coding for each action in Prompt statements. The examples use the convention that names of string variables are in uppercase.