- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Here is the we can create a list out of XML data
count the number of elements using
count(/process_data/xmlData/RootElement/rElement)
write script element as follows to access xml element data
int intCount=patExecContext.getProcessDataIntValue("/process_data/@intCount");
String elementName=patExecContext.getProcessDataStringValue("/process_data/@ElementName");
String rootElementString="/process_data/xmlData/RootElement/rElement["+intCount+"]/"+elementName;
String elementValue=patExecContext.getProcessDataStringValue(rootElementString);
patExecContext.setProcessDataStringValue("/process_data/@outTestString",elementValue);
using setValue in the process XPath mapping map
/process_data/@outTestString to /process_data/listVariableOut[number(/process_data/@intCount)]
listVariableOut is List of strings of elementValue. loop above code for all the elements, to get a list of element values
Here is the process diagram you can use as guidance
Views
Replies
Total Likes