Creating Flow Files 

Use

If you are developing an application based on the flow file implementation model, you must create a flow file for each HTMLBusiness template that requires a dialog flow definirion, and define the flow logic. To do this, you use the HTML Business editor.

Prerequisites

You have created the associated HTMLBusiness template.

Procedure

To create a flow file for an HTMLBusiness template:

  1. If the HTMLBusiness template for which you want to generate a flow file is not already open in the main work area, open it by double-clicking the file name in the project workspace.
  2. The SAP@Web Studio opens the template in the main work area.

  3. Choose Add Flow File or Edit ® Add Flow File.
  4. The SAP@Web Studio creates and opens a flow file with initial <flow> and closing </flow> tags.

    You can toggle between the HTMLBusiness code defined in the HTML Business template and the flow logic defined in the flow file by using the HTML Source and Flow Source buttons located in the status bar of the HTMLBusiness editor.

  5. Enter the flow logic between the <flow> and </flow> tags.
  6. Save your work.

Result

The SAP@Web Studio creates a flow file called <template>.flow and attaches it to the HTML Business template.

Flow files are not displayed separately in the project workspace, but you can always distinguish whether a flow file exists for a template by looking at the template icon:

Template Icon

Status

Template has flow file.

Template has no flow file.