Previous Topic: Specify Flow PropertiesNext Topic: Specify Conditions Under Which a Flow Occurs (Exit States)


Specify Commands to Initiate Dialog Flow Processing

A command value can be specified for each end of a dialog flow to direct the processing of procedure steps.

When two online procedure steps are joined with a link or a transfer, set a command that initiates the execution of the destination procedure step. When the dialog flow is a link, set a command that initiates the return to the source procedure step.

When a procedure step is activated from a screen, the application user enters a value in the Command field or presses a function key assigned to the command. This initiates the destination procedure step.

When a procedure step is activated from a dialog flow, a command value is passed by the dialog flow. The value is processed the same way a command entered by an application user is processed.

When you select a command to be passed along a dialog flow, you can have the command set in the source procedure step passed to the destination procedure step. To do this, you select the command option <CURRENT> when associating a command with a flow. In addition, upon return from a link, you can restore the previous command value. To do this you select the command option PREV when associating a command with a link flow. You can set the value of a command to <CURRENT> for flows within and between business systems. You can also set a command value to <CURRENT> for autoflows.

The <CURRENT> option can be used to add flexibility to menus: the user can select menu options that set an exit state and a command to be passed along the flow triggered by the exit state. The <CURRENT> option can be especially helpful if you have multiple options on the same screen menu, each of which uses a flow to the same destination procedure. For example, on a menu that includes options to add, delete, and fill sales orders, all three flows can occur to the same destination procedure. Instead of adding three exit states and three different commands, you can add a single dialog flow with one exit state and the command value set to <CURRENT>. By using fewer dialog flows, you develop smaller load modules during the Construction phase of CA Gen usage.

When you use the <CURRENT> value for command, be sure that the destination procedure step can respond to the command values passed to it. You must use the techniques in Action Diagramming to ensure that all commands passed to the procedure step can be acted upon.

When you set a command in a flow including <CURRENT>, you should set the properties of the dialog flow to Execute First.