Handler - passIfKeywordsMatch

 

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

keys
The 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:

Revised: 11 May 1998