This procedure describes how to configure a dataflow to support runtime options for
Read from File stage.
-
Open the flow in Spectrum Enterprise Designer.
-
If you want to configure runtime options for a stage in an embedded flow, open the
embedded flow.
-
Click the Dataflow Options icon on the toolbar or click . The Dataflow Options dialog box
appears.
-
Click Add. The Define Dataflow Options dialog
box appears.
-
Expand the Read from File stage.
The Dataflow options exposed are:
- Character Encoding
- Field Separator
- Text Qualifier
- Record Length
- First Row is Header Record
- Starting Record
- Max Records
-
The selected Read from File option name is displayed in Option
name and Option label fields. This is the
option name that will have to be specified at run time in order to set this
option.
-
Enter a description of the option in the Description field.
-
In the Target field, select the option
Selected stage(s).
-
If you want to limit the values that can be specified at runtime, edit the
options in the Legal values field by clicking on the icon
just to the right of the field.
-
If you want to change the default value, specify a different value in the
Default value field.
Note: For a service, you can only modify default
values before exposing the service for the first time. Once you expose the
service you can no longer modify default values using Spectrum Enterprise Designer.
Instead, you must use Spectrum Management Console. For more information, see
Specifying Default Service Options.
-
Click OK.
-
Continue adding options as desired.
-
Click OK in the Dataflow Options dialog box when you are done adding options.
-
Save and expose the dataflow.
Dataflow Options Rules
- Character Encoding: All encoding types that are valid for the
underlying JVM are accepted. This option cannot be empty.
- Field Separator: Any single character delimiter is accepted.
Currently, HEX values and spaces are not supported.
- Text Qualifier: Any single character qualifier is accepted. HEX
values are not supported.
- Record Length: Only integers accepted. Cannot be blank or non
numeric.
- Starting Record: Only integers accepted. Cannot be non
numeric.
- Max records: Only integers accepted. Cannot be non numeric.
- First Row is Header: Only boolean values of
true and false accepted.
Cannot be blank.