Context Download service is used to generate XML from a context variable. This is required when the context variable's information is to be stored in some target. This information can be passed as stream to other activities.
For example, if you want to store variables and their values present in the context as per schema defined to any target activity like database target, File Target, then context download activity can be used. It will generate XML of context variables and their values, which can be further used.
Steps to create Context Download service:
Click Configure > OTHERS>Context Download.
Click Create Context Download.
Enter the name and description for Context Upload in the in the Name and Description fields.
Select the layout activity from the Schema Name drop-down list.
To define the context variable, click the Define context variable(s) button. The Map Context Variable screen is displayed.
Expand the selected schema by clicking [+]. All fields of selected schemas are displayed.
Enter a name for the context variable in the textbox Variable Name.
Select the schema element, which you want to map with the above defined variable. The XPath of the selected element is displayed in the textbox Mapping.
Click the Apply button. Value of the selected schema element is displayed in the Variable Value field.
Repeat steps from 7 to 9 to map the context variable with other elements.
Select the Nullable checkbox in case you want this variable to allow blank value.
Click Add Variable to add more variables if required.
Click OK button to return to the Create Context Download screen.
Expand the Advanced Properties section and select the Project from Project drop-down list.