Skip to main content
Version: 1.15

Rule matcher plugins

This guide introduces you how to configure Rule matcher plugins.
These plugins allow to define if a product should be sent according to its content and metadata.

Here is the list of documented plugins:

  • Default Rule Matcher allows sending a notification if its content json properties match specific values
  • Lucene Rule Matcher allows sending a notification if its content or its metadata match given Lucene expressions

To import your plugin configurations to Notifier, you need update microservice configuration using REST API

Default Rule Matcher

This rule matcher allows to check into notification content if a json property matches given specific value. If so, the notification is sent to associated Recipient sender plugin(s).
Configuration parameters are:

NameTypeDescription
attributeToSeekStringattribute name to search for the notification json content
attributeValueToSeekStringattribute value to match
Default Rule Matcher plugin configuration example
 {
"key": "fr.cnes.regards.framework.modules.plugins.domain.PluginConfiguration",
"value": {
"pluginId": "DefaultRuleMatcher",
"label": "{label}",
"businessId": "{uniqueIdentifier}",
"version": "1.0.0",
"priorityOrder": 0,
"active": true,
"parameters": [
{
"name": "attributeToSeek",
"type": "STRING",
"value": "{value to match}"
},
{
"name": "attributeValueToSeek",
"type": "STRING",
"value": "{attribute to search for}"
}
]
}
}

Lucene Rule Matcher

This rule matcher allows to check if notification content or metadata matches given lucene expression. If so, the notification is sent to associated Recipient sender plugin(s). Configuration parameters are:

NameTypeDescription
payload_ruleStringLucene expression to seek inside the payload of the input
metadata_ruleStringLucene expression to seek inside the metadata of the input
Lucene queries

You can check the Lucene guide to create your lucene query

Lucene Rule matcher plugin configuration example
 {
"key": "fr.cnes.regards.framework.modules.plugins.domain.PluginConfiguration",
"value": {
"pluginId": "LuceneRuleMatcher",
"label": "{label}",
"businessId": "{uniqueIdentifier}",
"version": "1.0.0",
"priorityOrder": 0,
"active": true,
"parameters": [
{
"name": "payload_rule",
"type": "STRING",
"value": "{lucene rule}"
},
{
"name": "metadata_rule",
"type": "STRING",
"value": "{lucene rule}"
}
]
}
}