Configuring the Script adapter
Adapter type: ro-adapter-script_vv.rr.nn
Default adapter name: ScriptAdapter
To configure the Script adapter, see Configuring base adapters.
The following table describes the adapter configuration elements for the Script adapter that you can specify by using the form view, XML view, or both. You cannot use the form view to configure elements and attributes that do not have an entry in the "UI label" column.
Configuration node elements for the Script adapter
UI label | Element | Description | Required |
---|---|---|---|
Perl Path |
| Specifies the fully qualified (absolute and unambiguous) path to the Perl executable | Yes |
Handle Script Error |
| Specifies whether to handle or ignore internal script errors when using script activity | No |
Character Set |
| Specifies the supporting CharSet (also called character set) You can get the active code page supported by cmd.exe by running the Notes To get the expected results:
Valid values:
| No |
System settings for the Language Enablement (LE) feature
- Click Start > Control Panel.
- Double-click Regional and Language Options.
- Click the Regional Options tab, select a regional standard (for example, Chinese PRC), and then click Apply.
- Click the Advanced tab and select the same regional standard (for example, Chinese PRC) that you selected in Step 2.
- Select the check box under Default user account settings.
- Click Apply, and then click OK.
Restart your computer.
The following figure shows an XML template for the Script adapter configuration.
XML template of the Script adapter configuration<config> <perl-path></perl-path> <handle-script-error></handle-script-error> </config>
The following figure shows an XML sample for the Script adapter configuration.
XML sample of the Script adapter configuration<config> <perl-path>c:/Perl/bin/perl.exe</perl-path> <handle-script-error>true</handle-script-error> </config>
The following figure shows an XML sample for the Script adapter configuration when the adapter supports Language Enablement (LE) and uses Jython (version 2.2.1) scripts.
XML sample of the Script adapter configuration when the adapter supports LE and uses Jython scripts<config> <perl-path>C:\jython2.2.1\jython.jar</perl-path> <handle-script-error>true</handle-script-error> <character-set>GB18030</character-set> </config>
The following figure shows an XML sample for the Script adapter configuration when the adapter supports LE and uses Perl(version 5.14.2) scripts.
XML sample of the Script adapter configuration when the adapter supports LE and uses Perl scripts<config> <perl-path>C:\Perl\bin\perl.exe</perl-path> <handle-script-error>true</handle-script-error> <character-set>GB18030</character-set> </config>
Comments
Log in or register to comment.