Glenn,
The pub.list:getListItem built-in service was deprecated because, beginning with release 6.0, you can now extract a specific item from a string list or record list using only a map statement.
You do this by specifying a variable (enclosed in “%” characters) containing the index of the desired list element in the List Properties dialog on a map statement. In prior releases, you could only specify an integer value in this dialog.
To see how this works do the following:
- Create a new Flow service with a string list input variable called myList and a second string variable called myIndex. []Insert a new MAP statement. Create a new string variable called myListItem and draw a line to it from myList. []Double-click on the line to open the List Properties dialog. [*]In the index field type %myIndex%.
Run the service with the following values:
The results tab should show that the the myItem variable now contains the third list item, “charlie” (java array indices begin with 0).
HTH,
Mark
#webMethods#webMethods-Upgrade#webMethods-General#Integration-Server-and-ESB