Read XML activity

An activity that maps data from an XML code snippet to your process schema.


Read XML activity

Configure the Read XML activity

To configure the Read XML activity, do the procedure in this topic.

Prerequisites

Good to Know

How to Start

  1. Open Process Builder.

    For information about how to open this screen, refer to Process Builder.


    Open Process Builder
  2. In Process Builder, in the Activity Library, open the Document tab.

    Document tab
  3. On the Document tab, drag the Read XML activity onto your process.

    Read XML activity

Procedure

  1. Complete the fields on the General Configuration screen.
  2. Click Source Configuration Source Configuration icon.
  3. On the Source Repository screen, select the source location of your XML code snippet to map the values in your process schema.
  4. Click XML Reader Template Configuration XML Reader Template Configuration icon.
  5. Complete the fields on the XML Reader Template Configuration screen.

    For more information, refer to Read a XML File.

  6. Click XML Reader Schema Configuration XML Reader Schema Configuration icon.
  7. Complete the fields on the XML Reader Schema Configuration screen.
  8. (Optional) Click Advanced Advanced icon > Email Notifications E-mail Notifications icon.

    For more information, refer to Email Notifications screen (Process Activities).

General Configuration

Specifies the basic settings for the Read XML activity.

Figure: General Configuration screen

General Configuration screen

Good to Know

  • Documentation for this screen is provided for completeness. The fields are mostly self-explanatory.

Fields

Field NameDefinition

Display Name

Description:
Specifies the activity name that shows in your process.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
None
Accepts Variables:
No
Example:
This is a common configuration field that is used in many examples. Refer to:
  • Examples - Step-by-step use case examples, information about what types of examples are provided in the AgilePoint NX Product Documentation, and other resources where you can find more examples.

Description

Description:
Specifies an optional text description for your activity.
Allowed Values:
More than one line of text.
Default Value:
None
Accepts Variables:
No

Read XML Selection Configuration

Specifies the source for the XML code snippet to connect to your process.

Figure: XML Reader Selection Configuration screen

XML Reader Selection Configuration screen

Prerequisites

Fields

Field NameDefinition

Read XML Runtime Payload From Source Repository / Read XML Runtime Payload From A Variable

Description:
Specifies the source for the XML code snippet to connect to your process.
Allowed Values:
  • Read XML Runtime Payload From Source Repository - Configures the Source Repository screen to specify a repository that stores the XML code snippet.
  • Read XML Runtime Payload From A Variable - Specifies a process data variable that stores the XML code snippet.
Default Value:
Read XML Runtime Payload From Source Repository

Source Repository

Specifies the source location of your XML code snippet to map the values in your process schema.

Figure: Source Repository screen

Source Repository screen

Fields

Field NameDefinition

Source Repository

Opens this Screen:
The configuration screen for your document repository. The specific screen that shows depends on your document repository type.

For more information, refer to Document Repositories.

Function of this Screen:
Configures your document repository.

XML Reader Template Configuration

Loads your XML code snippet to connect with your process.

Figure: XML Reader Template Configuration screen

XML Reader Template Configuration screen

Fields

Field NameDefinition

XML Source

Description:
Specifies the XML code snippet to connect to your process.
Allowed Values:
A valid XML code snippet.
Default Value:
None
Accepts Variables:
Yes

Load

Description:
Runs the XML code to get data from the external service.
To Open this Field:
  • On the XML Reader Selection Configuration screen, select Read XML Runtime Payload From Source Repository.

Read XML Runtime Payload From This Variable

Description:
Specifies a process data variable that stores the XML code snippet to connect to your process.
To Open this Field:
  • On the XML Reader Selection Configuration screen, select Read XML Runtime Payload From A Variable.
Allowed Values:
A process data variable that accepts a text string in the XML code snippet.
Default Value:
None
Limitations:

This field is available in these releases:

XML Reader Schema Configuration

Maps the values in your XML code snippet to schema elements in your process.

Figure: XML Reader Schema Configuration screen

XML Reader Schema Configuration screen

Fields

Field NameDefinition

Mapping Schema

Description:
Connects the schemas to your process schema.

The source and the destination schemas show in a tree view in the left and right panes.

Allowed Values:
Read only - However, the drag and drop operations are supported to map the schemas.

Drag a data node from the source schema pane to the destination schema pane:

  • Green line - The data type of source and destination nodes matches.
  • Blue line - The data type of source and destination nodes doesn't match. The data conversion is required to map the schemas.
  • Red line - Specifies that the custom data conversion is required.
Example:
Refer to:

AutoMap

Function:
Maps all fields in the data source and the process schema that have the same name.
Example:
Refer to:

Reset

Function:
Deletes all connections that have been made in the Schema Mapper for this activity.

Data Conversion

Description:
Specifies the data conversion between the source and the destination schema fields.
Allowed Values:
  • No Data Conversion Needed - The data type of the source schema elements matches the data type of the target schema elements, or no data type conversion is necessary.
  • Default Conversion - The data type of the source schema elements does not match the data type of the target schema elements. This option uses a default conversion methodology.
  • Custom Data Conversion - Uses a data conversion method you specify.

    If you specify a custom data conversion method, it must return the results in valid XML format.

Default Value:
No Data Conversion Needed
Example:
Refer to:

Add

Opens this Screen:
Custom Mapping screen
Function of this Screen:
Specifies custom C# code that can be used to map fields to an XML schema.
Example:
Refer to:

Edit

Opens this Screen:
Custom Mapping screen
Function of this Screen:
Specifies custom C# code that can be used to map fields to an XML schema.

Delete

Function:
Deletes the selected custom data conversion from the list.

Reload

Function:
Runs the XML code to connect the data again.