Creating subFlow state

About this task

A SubFlow state is used to call another flow. The SubFlow state exists in a transaction flow as a referenced state.

The procedure in this topic describes how to create a SubFlow state by dragging the SubFlow state icon The subflow state icon. from the Palette pane to the Transaction editor. However, if the flow that you want to use as a SubFlow state has already been created, you can drag the flow from the Project Explorer pane to the editing area in the Transaction editor as shown in Figure 1. The properties and events that have been configured in the flow are copied to the SubFlow state, and the name of the transaction file is displayed on the label of the SubFlow state.
Figure 1. Creating a SubFlow state by dragging a flow to the Transaction editor

Procedure

To create a SubFlow state, do the following steps:

  1. In the Project Explorer pane, double-click the transaction file that you want to edit.
  2. In the Transaction editor, click the Flow tab.
  3. In the Palette pane, click SubFlow.
  4. In the Flow tab of the Transaction editor, click the area on which you want to place the SubFlow state icon The subflow state icon.. If you want to change the location of the SubFlow state icon in the Flow tab, drag and drop the SubFlow state icon to the desired location.
  5. Bind a flow to the SubFlow state:
    1. Click the SubFlow state icon in the Flow tab.
    2. In the Properties tab of the SubFlow state, click the General tab.
    3. In the Subflow field of the General tab, click the Browse icon The Browse icon. The Select Flow window opens.
    4. In the Select Flow window, select the flow that you want to define as the subflow of the transaction flow. Click OK.
      Note: The subflow is a .xml file that is generated from the transaction file in which you select a subflow. Therefore, if you want to select a transaction file as a subflow, you must first generate the .xml transaction file.