Description
This juggler checks string subproducts in the composite product and determines whether or not they match all or any of the keywords. If there are multiple inputs it merges them before checking for a match.Configuration Variables
keysThe target keywords that should appear within the composite product.method
The matching method used to match keywords:
- "ANY" match any keyword (default)
- "ALL" must match all keywords
delimiter
The string delimiter used to separate the search words in the key property. Default is whitespace.Product
Product is null if there are no sources, or if the keyword match fails.If keywords match the subproducts then the product is passes to the sinks without change.
How it works
The passIfKeyWordsMatch juggler extends the passThru juggler by calling upon it to create a composite product, and then checking string subproducts from the composite product to decide whether to pass the product along or delete it.The following algorithm is used by the passIfKeyWordsMatch juggler to determine when products are passed to the sink or deleted:
- If ANY method is chosen then the product will pass upon the first match of any keyword.
- If ALL method is chosen then the product will pass if and only if all the keywords match the string contents of the subproducts.
Revised: 11 May 1998