Creating and importing BFlow test scripts
- Select File > New > Infor LN Component.
- In the Component Type field, select Additional File.
- Click Next. The Select Type page is displayed.
-
Select BFlow Step and click Next.
The select BFlow Template page is displayed.
-
Select the desired template.
This table shows the templates you can select:
Option Description BFlow - READ - Template This template contains the overview_session
anddetail_session
variables. You must specify Get Fields actions.BFlow - MODIFY - Template This template contains the overview_session
anddetail_session
variables. You must specify Set Fields actions.BFlow - NEW - Template This template contains the overview_session
anddetail_session
variables. You must specify Set Fields actions.BFlow - DUPLICATE - Template This template contains the overview_session
anddetail_session
variables. You must specify Set Fields actions.BFlow - DELETE - Template This template contains the overview_session
variable.BFlow - FORM COMMAND - Template This template contains the overview_session
andform_command
variables.BFlow - PROCESS - Template This template contains the session
andform_command
variables. You must specify Set Fields actions.BFlow - WORKFLOW - Template This template contains the overview_session
variable.NONE This template contains no variables. After you selected a template, the variables of that template are displayed in the grid. -
Specify the values for the variables in the grid. These values are used when the
BFlow is created.
Note:
- For the
form_command
variable, click the Value column in the grid and select the desired form command from the list. - If a synchronized dialog is defined for the
overview_session
, you can leave the value of thedetail_session
variable blank.
- For the
-
Click Next.
Depending on the selected template, one of these pages is displayed:
- Add Get Fields actions
- Add Set Fields actions
- Additional File Properties
-
If the Add Get Fields actions page is displayed, complete
these steps:
-
Specify this information:
- Type
- Select one of these values in the drop-down box:
- Overview: only overview fields are displayed.
- Details: only details fields are displayed.
- Default: Depends on the session type
- Show Initially hidden fields
- If this check box is selected, if the form field was initially hidden, this field is also displayed in the tree to select.
- Default: Cleared
- Show Only Search Key Fields
- If this check box is selected, only key fields of a specified index are displayed.
- You can select the index in an additional input field.
- Default: Cleared
- Show Only Maintable Fields
- If this check box is selected, only fields of the main table of the session are displayed.
- Default: Cleared
- Generate Step for the new actions
- If this check box is selected, a step is created under the current action. All generated actions are added to this step.
- Default: Selected
- Add missing actions in step
- If this check box is selected, missing Get Field actions are added to the already existing step. If multiple steps are present in the flow, then you can select a particular step in a drop-down box.
- This check box is only enabled if the previous check box, Generate Step for the new actions, is cleared.
- Default: Cleared
- Generate Variables
- If this check box is selected, output variables are created for the selected fields. If an input variable with the same name already exists, this variable changes to an input/output variable.
- Default: Selected
- Prefix
- If you specify a prefix, the names of any generated variables start with this prefix. A prefix is required if you generate variables for different sessions with the same field names.
- Default: 'o.'
-
Click Next. For
all selected fields, an action is generated. Depending on the information you
specified, variables may also be generated for the selected fields.
The generated actions are displayed in the Actions tab in the BFlow Editor.
If you selected Generate Variables, the generated variables are displayed in the General tab in the BFlow Editor.
-
Specify this information:
-
If the Add Set Fields actions page is displayed, complete
these steps:
-
Specify this information:
- Type
- Select one of these values in the drop-down box:
- Overview: only overview fields are displayed.
- Details: only details fields are displayed.
- Default: Depends on the session type
- Show Initially hidden fields
- If this check box is selected, if the form field was initially hidden, this field is also displayed in the tree to select.
- Default: Cleared
- Show Only Search Key Fields
- If this check box is selected, only key fields of a specified index are displayed.
- You can select the index in an additional input field.
- Default: Cleared
- Show Only Maintable Fields
- If this check box is selected, only fields of the main table of the session are displayed.
- Default: Cleared
- Generate Step for the new actions
- If this check box is selected, a step is created under the current action. All generated actions are added to this step.
- Default: Selected
- Add missing actions in step
- If this check box is selected, missing Set Field actions are added to the already existing step. If multiple steps are present in the flow, then you can select a particular step in a drop-down box.
- This check box is only enabled if the previous check box, Generate Step for the new actions, is cleared.
- Default: Cleared
- Generate Variables
- If this check box is selected, output variables are created for the selected fields. If an input variable with the same name already exists, this variable changes to an input/output variable.
- Default: Selected
- Prefix
- If you specify a prefix, the names of any generated variables start with this prefix. A prefix is required if you generate variables for different sessions with the same field names.
- Default: 'i.'
- Generate If Variables
- If this check box is selected, an If variable action is created.
- Default: Selected
- Generate Info Fields
- If this check box is selected, an Info Field action is created.
- Default: Selected
-
Click Next. For
all selected fields, an action is generated. Depending on the information you
specified, variables may also be generated for the selected fields.
The generated actions are displayed in the Actions tab in the BFlow Editor.
If you selected Generate Variables, the generated variables are displayed in the General tab in the BFlow Editor.
-
Specify this information:
-
On the Additional File Properties page, the default name and
description of the new BFlow test script are displayed.
You can change these values. If you do so, specify the file name in this format:
[package][module][filename].bflow
- Click Finish.