i need to filter certain elements from string list. is there any services available in webMethods?
for example :
List1
- utils.API.test
- pub.file:getFile
- sampleTest
in this list i need to filter text containg ‘utils’ and ‘pub’.
Please let me know is there anyway to do it.
Thanks in advance.
rcd47
(rcd47)
2
pub.string:indexOf might help you.
u need to write a wrapper service to check on the list.
reamon
(reamon)
3
By filter I assume you mean delete:
Loop – input list: List1
…BRANCH on ‘/List1’
…/^Utils|^pub/: MAP (ignore this entry)
…$default: pub.list:appendToStringList (map List1 to fromItem, creating List2)
The branch is using a regex to check if the string starts with Utils or pub.