About this task
A SubFlow state is used to call another state or flow. The
SubFlow state exists in a transaction flow as a referenced state.
Procedure
To create a SubFlow state, do the following steps:
- In the Enterprise Explorer pane, double-click
the transaction file that you want to edit to open the transaction
file in the Transaction editor.
- In the Transaction editor, click the Processor tab.
- In the Palette pane, click SubFlow.
- In the Processor tab of the Transaction
editor, click on the area at which you want to place the SubFlow state
icon
. If you want to change
the location of the SubFlow state icon in the Processor tab,
drag and drop the SubFlow state icon to the desired location.
- Click the SubFlow state icon in the Processor tab.
- In the Properties tab of the SubFlow
state, click the General tab.
- In the Subflow field of the General tab,
click the Browse icon
. The Select Flow window
opens.
- 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.
- In the Events panel of the General tab,
click the Add icon
to add an event to the subflow. The name of the
event for the SubFlow state must be the same as the name of the exit
event of the subflow.