How to Configure the Scriptor Component

This topic describes how to configure the Scriptor component. You use the Scriptor component to insert code modules into a pipeline. The script run by the Scriptor component can be stored internally, as part of a pipeline configuration file (.pcf), or externally, in a separate file called by the component when it runs.

You can write a general-purpose script that can behave differently depending on the parameters that are passed to it. Save the script itself in a file, and then configure the Scriptor component to pass the parameters.

The Microsoft Transaction Server (MTS) context is not available to a Scriptor component or to any components called by a Scriptor, that is, context.SetComplete and context.SetAbort are not available to scripts hosted by the Scriptor component.

To configure the Scriptor component

  1. Click Start, point to AllPrograms, point to Microsoft Commerce Server 2009 , point to Tools,and then click Pipeline Editor.

  2. On the File menu, click Open. Locate the pipeline that contains the Scriptor component, and then click Open.

  3. Right-click the Scriptor component you want to configure, and then click Properties.

  4. On the Scriptor tab, do the following:

    Use this

    To do this

    Scripting Engine

    Select the language in which the script was written.

    Source

    Select Internal, and then click Edit. In the Scriptor Source Code Edit window, type or paste the script for your component, and then click OK.

    Or, select External to store the script in an external file. In the Scriptor dialog box, click No if you do not want to export the internal source code. In the Filename box, type the path and file name.

    Config

    To pass parameters to the script, type the parameters for the component in the form name=value.

    Or, leave blank.

  5. Click OK, and then click Apply.

See Also

Other Resources

How to Use the Scriptor Component

Scriptor