Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
i need to filter certain elements from string list. is there any services available in webMethods?
for example :
List1
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.
pub.string:indexOf might help you.
u need to write a wrapper service to check on the list.
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.