<< Previous in series Now Right Click this step and choose Input Arguments
Create a New Record
Provide the Following values to the Input Argument
Input Argument: XMLHierarchy
Type: Process Property
Property Name: XMLH (This is the process property that will contain your XML Hierarchy queried from pervious steps)
Create a another New Record
Provide the Following input arguments
Input Argument: TestProcessProperty (Name of the process property in which you want to store the value)
Type: Literal
Value: ./*/TestTag (You have to give the element path in XPath Notation)
Add more input arguments if you want to retrieve more element values just change the path according to their place in the XML hierarchy
Right click the step again and choose Output Argument as shown below
Provide the following values
Property Name: TestProcessProperty
Value: Output Argument
Output Argument: TestProcessProperty
You will have to do this for every input argument that you have mentioned to reterive the value
Input Argument: XMLHierarchy
Type: Process Property
Property Name: XMLH (This is the process property that will contain your XML Hierarchy queried from pervious steps)
Input Argument: TestProcessProperty (Name of the process property in which you want to store the value)
Type: Literal
Value: ./*/TestTag (You have to give the element path in XPath Notation)
Add more input arguments if you want to retrieve more element values just change the path according to their place in the XML hierarchy
Property Name: TestProcessProperty
Value: Output Argument
Output Argument: TestProcessProperty
You will have to do this for every input argument that you have mentioned to reterive the value
The Above mentioned path would work if the XML hierarchy is as following
<?xml version=”1.0″ encoding=”UTF-8″?>
<RootTag>
<ChildTag>
<TestTag>TestValue</TestTag>
</ChildTag>
</RootTag>
How to find out the path of an element?
This is general tip that you can use to find out the path for the particular element.
- Simulate the workflow
- Open your watch window
- Go the process property which contains your XML Hierarchy
Add “./” for the first + sign you click - add */ for every subsequent + sign you click till the time you see the element that you want to retrieve.
This will roughly give you your path.
We will discuss more about XPath Notation in next post of this series
<< Previous in series
1 Comment at "FINS Industry XML Query Service – Workflow Details"
for this u can use the PRM utility vanilla Business Service which will do the same task i.e. reading XML also you can write the value in the XML file without custom script
Comment Now!