Follow-On Topics

Related Topics

# About the General Tab

Click the image to view full size.

The General tab allows the step to be named and described. If you require data to be transferred to the task being called then an XML data source for the Call Task tool can be selected. This exposes the XML data within the tool and allow it to be mapped to variables within the called task.

The data source can either be an existing task step, or a custom source allowing the use of a task variable.

## Data Source

The Task Step drop-down list displays the available steps in the task that are capable of natively exposing an XML document. For example, this may be a Recordset to XML step or a Web Service Connector step. Selecting this option consumes the output XML of the step and automatically determines the schema (XSD). The schema is then presented within the Mapping tab for the XML data to be mapped to the other task.

Selecting Custom Schema allows the use of a task variable containing XML as its value. The variable is dragged from the task browser and placed in the Input Source Variable field. The schema describing the structure of the XML in the variable must then be supplied using the Define button.

An XSD file is preferable as the schema is pre-defined, however if one is not available then an XML file can be used instead. The tool automatically describes what is contained in the XML structure to provide the schema for you. A file can be located from disk or the XML/XSD copied directly into the text box when defining the schema.

If you do not require the use of an XML source then you can select the option No Data Source. If required, you can still pass data via the use of task variables by incorporating them into the Mapping tab.

## Using a Task Variable to Supply the XML

An example of the XML must be supplied to define the schema of the XML stored in the variable.

1. Select Custom Schema.
2. Drag the variable containing XML from the task browser and into the Input Source Variable field.
3. Click Define which to display the Custom Schema Configuration dialog box.
4. Supply the schema via one of the following:
   - Click the button Import XSD/XML File to supply a valid XSD or XML file from disk.
   - Copy & paste the valid XSD or XML directly into the text box.
5. Click Parse to check for any errors.
6. Click OK to complete.

TIP:

If XML is imported or copied in, then the schema will automatically be inferred.

Copyright © 2018 Quadrant Software B.V. All rights reserved.